diff options
author | saturneric <[email protected]> | 2024-12-02 17:10:01 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-02 19:32:59 +0000 |
commit | 0b5131cd895f6c4f7fc21af6740d03952a2463af (patch) | |
tree | 18d3eeac659e18346aa1477a318c47fecc094c0c /src/ui/widgets/TextEditTabWidget.h | |
parent | translations: update zh_CN and de_DE (diff) | |
download | GpgFrontend-0b5131cd895f6c4f7fc21af6740d03952a2463af.tar.gz GpgFrontend-0b5131cd895f6c4f7fc21af6740d03952a2463af.zip |
fix: qt5 build issues
Diffstat (limited to 'src/ui/widgets/TextEditTabWidget.h')
-rw-r--r-- | src/ui/widgets/TextEditTabWidget.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/ui/widgets/TextEditTabWidget.h b/src/ui/widgets/TextEditTabWidget.h index 13ed00f0..9df2d6ab 100644 --- a/src/ui/widgets/TextEditTabWidget.h +++ b/src/ui/widgets/TextEditTabWidget.h @@ -39,79 +39,79 @@ class TextEditTabWidget : public QTabWidget { public: explicit TextEditTabWidget(QWidget* parent = nullptr); - public slots: - /** * @brief * + * @return PlainTextEditorPage* */ - void SlotNewTab(); + [[nodiscard]] auto CurTextPage() const -> PlainTextEditorPage*; /** * @brief * + * @return PlainTextEditorPage* */ - void SlotNewEMailTab(); + [[nodiscard]] auto CurEMailPage() const -> EMailEditorPage*; /** * @brief * - * @param title - * @param content + * @return PlainTextEditorPage* */ - void SlotNewTabWithContent(QString title, const QString& content); + [[nodiscard]] auto CurPageTextEdit() const -> PlainTextEditorPage*; /** - * @details Adds a new tab with opening file by path + * @brief + * + * @return FilePage* */ - void SlotOpenFile(const QString& path); + [[nodiscard]] auto CurFilePage() const -> FilePage*; + + public slots: /** * @brief * - * @param path */ - void SlotOpenEMLFile(const QString& path); + void SlotNewTab(); /** * @brief * */ - void SlotOpenDirectory(const QString& target_directory); + void SlotNewEMailTab(); /** - * @details put a * in front of current tabs title, if current textedit is - * modified + * @brief + * + * @param title + * @param content */ - void SlotShowModified(); + void SlotNewTabWithContent(QString title, const QString& content); /** - * @brief - * - * @return PlainTextEditorPage* + * @details Adds a new tab with opening file by path */ - [[nodiscard]] auto CurTextPage() const -> PlainTextEditorPage*; + void SlotOpenFile(const QString& path); /** * @brief * - * @return PlainTextEditorPage* + * @param path */ - [[nodiscard]] auto CurEMailPage() const -> EMailEditorPage*; + void SlotOpenEMLFile(const QString& path); /** * @brief * - * @return PlainTextEditorPage* */ - auto SlotCurPageTextEdit() -> PlainTextEditorPage*; + void SlotOpenDirectory(const QString& target_directory); /** - * @brief - * - * @return FilePage* + * @details put a * in front of current tabs title, if current textedit is + * modified */ - [[nodiscard]] auto CurFilePage() const -> FilePage*; + void SlotShowModified(); protected: /** |