aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/PlainTextEditorPage.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-26 16:23:46 +0000
committersaturneric <[email protected]>2024-11-26 16:23:46 +0000
commitf19beee8e28621bb045e45d71c963fbba1307f4b (patch)
tree20a8f52df99724f10bb20aa5273fe506f08e614e /src/ui/widgets/PlainTextEditorPage.h
parentfix: change "Advance" to "Advanced" (diff)
downloadGpgFrontend-f19beee8e28621bb045e45d71c963fbba1307f4b.tar.gz
GpgFrontend-f19beee8e28621bb045e45d71c963fbba1307f4b.zip
refactor: optimum code and reduce duplicate
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