aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/TextEdit.h
diff options
context:
space:
mode:
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:
/**