aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/TextEdit.h
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2023-02-25 11:49:54 +0000
committerGitHub <[email protected]>2023-02-25 11:49:54 +0000
commitaf1cd680f2496629026ba27707cef2afd860f5f9 (patch)
tree78e78450893e98b8828cc41010e377c1561e5f34 /src/ui/widgets/TextEdit.h
parentfix: improve manual (diff)
parentfeat: use aqt to install qt in ci build (diff)
downloadGpgFrontend-af1cd680f2496629026ba27707cef2afd860f5f9.tar.gz
GpgFrontend-af1cd680f2496629026ba27707cef2afd860f5f9.zip
Merge pull request #91 from saturneric/dev/2.0.10/main
Develop 2.1.0.1
Diffstat (limited to '')
-rw-r--r--src/ui/widgets/TextEdit.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/ui/widgets/TextEdit.h b/src/ui/widgets/TextEdit.h
index cb32bfb2..2e2f949d 100644
--- a/src/ui/widgets/TextEdit.h
+++ b/src/ui/widgets/TextEdit.h
@@ -153,7 +153,7 @@ class TextEdit : public QWidget {
/**
* @details Adds a new tab with opening file by path
*/
- void SlotOpenFile(QString& path);
+ void SlotOpenFile(const QString& path);
/**
* @details Adds a new tab with the given title and opens given html file.
@@ -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:
/**