diff options
author | saturneric <[email protected]> | 2024-11-26 16:23:46 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-26 16:23:46 +0000 |
commit | f19beee8e28621bb045e45d71c963fbba1307f4b (patch) | |
tree | 20a8f52df99724f10bb20aa5273fe506f08e614e /src/ui/widgets/PlainTextEditorPage.h | |
parent | fix: change "Advance" to "Advanced" (diff) | |
download | GpgFrontend-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.h | 11 |
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 |