diff options
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/EditorPage.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/widgets/EditorPage.h b/src/ui/widgets/EditorPage.h index 1a19134c..a0a05dab 100644 --- a/src/ui/widgets/EditorPage.h +++ b/src/ui/widgets/EditorPage.h @@ -84,13 +84,19 @@ class EditorPage : public QWidget { */ void closeNoteByClass(const char* className); - void readFile(); + void ReadFile(); + + [[nodiscard]] bool ReadDone() const { return this->readDone; } + + void PrepareToDestroy(); private: QTextEdit* textPage; /** The textedit of the tab */ 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 */ + bool readDone = false; + QThread* readThread = nullptr; private slots: |