aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/TextEdit.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-02-04 06:40:17 +0000
committersaturneric <[email protected]>2023-02-04 06:50:30 +0000
commitf52b5f91bec98c7d45422d77cc09a0419d59b81b (patch)
tree391802daf890abe85ccd63a42257ef1619249e35 /src/ui/widgets/TextEdit.h
parentfix: solve open file issue in menu bar (diff)
downloadGpgFrontend-f52b5f91bec98c7d45422d77cc09a0419d59b81b.tar.gz
GpgFrontend-f52b5f91bec98c7d45422d77cc09a0419d59b81b.zip
feat: add cache recovery function
Diffstat (limited to 'src/ui/widgets/TextEdit.h')
-rw-r--r--src/ui/widgets/TextEdit.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ui/widgets/TextEdit.h b/src/ui/widgets/TextEdit.h
index 6398cf34..2e2f949d 100644
--- a/src/ui/widgets/TextEdit.h
+++ b/src/ui/widgets/TextEdit.h
@@ -172,7 +172,7 @@ class TextEdit : public QWidget {
* @details put a * in front of current tabs title, if current textedit is
* modified
*/
- void SlotShowModified() const;
+ void SlotShowModified(bool) const;
/**
* @details close the current tab and decrease TabWidget->count by \a 1
@@ -193,6 +193,8 @@ class TextEdit : public QWidget {
void SlotSwitchTabDown() const;
private:
+ uint text_page_data_modified_count_ = 0; ///<
+
/**
* @details return just a filename stripped of a whole path
*
@@ -221,6 +223,13 @@ class TextEdit : public QWidget {
*/
void slot_remove_tab(int index);
+ /**
+ * @brief
+ *
+ * @param index
+ */
+ void slot_save_status_to_cache_for_revovery();
+
public slots:
/**