aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
index 8ba1e4bc..075ed742 100644
--- a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
+++ b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
@@ -11,6 +11,7 @@
#include <QWidget>
#include <QResizeEvent>
#include <QPaintEvent>
+#include <QFileSystemWatcher>
#include "syntaxSupport.h"
@@ -42,6 +43,7 @@ private:
bool showLNW;
QSettings *settings;
QString lastSaveContents;
+ QFileSystemWatcher *watcher;
//Syntax Highlighting class
Custom_Syntax *SYNTAX;
@@ -61,6 +63,8 @@ private slots:
void checkMatchChar();
//Functions for notifying the parent widget of changes
void textChanged();
+ //Function for prompting the user if the file changed externally
+ void fileChanged();
protected:
void resizeEvent(QResizeEvent *ev);
@@ -96,4 +100,3 @@ protected:
}
};
#endif
-
bgstack15