diff options
author | Saturneric <[email protected]> | 2021-12-02 21:35:16 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-02 21:35:16 +0000 |
commit | 1e3f1d13a6fb1bfc8f24be83032df1e92350dbcc (patch) | |
tree | 58cabfa5c0065632b97823b6e6f068c04f1fa2e9 /src/ui/widgets/EditorPage.h | |
parent | Fix and Modified. (diff) | |
download | GpgFrontend-1e3f1d13a6fb1bfc8f24be83032df1e92350dbcc.tar.gz GpgFrontend-1e3f1d13a6fb1bfc8f24be83032df1e92350dbcc.zip |
Fixed.
1. Fixed known issue in File Operations.
Diffstat (limited to 'src/ui/widgets/EditorPage.h')
-rw-r--r-- | src/ui/widgets/EditorPage.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/ui/widgets/EditorPage.h b/src/ui/widgets/EditorPage.h index 1e19a0de..1a19134c 100644 --- a/src/ui/widgets/EditorPage.h +++ b/src/ui/widgets/EditorPage.h @@ -30,11 +30,8 @@ QT_BEGIN_NAMESPACE class QVBoxLayout; - class QHBoxLayout; - class QString; - class QLabel; QT_END_NAMESPACE @@ -58,7 +55,7 @@ class EditorPage : public QWidget { /** * @details Get the filepath of the currently activated tab. */ - const QString& getFilePath() const; + [[nodiscard]] const QString& getFilePath() const; /** * @details Set filepath of currently activated tab. @@ -87,8 +84,6 @@ class EditorPage : public QWidget { */ void closeNoteByClass(const char* className); - const QString uuid = QUuid::createUuid().toString(); - void readFile(); private: @@ -96,7 +91,6 @@ class EditorPage : public QWidget { QVBoxLayout* mainLayout; /** The layout for the tab */ QString fullFilePath; /** The path to the file handled in the tab */ bool signMarked{}; /** true, if the signed header is marked, false if not */ - QThread* readThread = nullptr; private slots: @@ -104,6 +98,8 @@ class EditorPage : public QWidget { * @details Format the gpg header in another font-style */ void slotFormatGpgHeader(); + + void slotInsertText(const QString& text); }; } // namespace GpgFrontend::UI |