aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/PlainTextEditorPage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widgets/PlainTextEditorPage.h')
-rw-r--r--src/ui/widgets/PlainTextEditorPage.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ui/widgets/PlainTextEditorPage.h b/src/ui/widgets/PlainTextEditorPage.h
index 9c2edc6e..c4423378 100644
--- a/src/ui/widgets/PlainTextEditorPage.h
+++ b/src/ui/widgets/PlainTextEditorPage.h
@@ -51,7 +51,7 @@ class PlainTextEditorPage : public QWidget {
/**
* @details Get the filepath of the currently activated tab.
*/
- [[nodiscard]] const QString& GetFilePath() const;
+ [[nodiscard]] auto GetFilePath() const -> const QString&;
/**
* @details Set filepath of currently activated tab.
@@ -63,7 +63,14 @@ class PlainTextEditorPage : public QWidget {
/**
* @details Return pointer tp the textedit of the currently activated tab.
*/
- QPlainTextEdit* GetTextPage();
+ auto GetTextPage() -> QPlainTextEdit*;
+
+ /**
+ * @brief Get the Plain Text object
+ *
+ * @return QString
+ */
+ auto GetPlainText() -> QString;
/**
* @details Show additional widget at buttom of currently active tab