forked from qt-creator/qt-creator
Utils: Introduce GlobalFileChangeBlocker
Tracks application state, and signals when it is changed. Supports forcing blocked state with reference counting. Change-Id: Ic173d42446b1b08bd4a1e7c1acf38c68644d30b3 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
81ce096719
commit
c225216b93
@@ -69,8 +69,6 @@ public:
|
||||
static void expectFileChange(const QString &fileName);
|
||||
static void unexpectFileChange(const QString &fileName);
|
||||
|
||||
static void setAutoReloadPostponed(bool enabled);
|
||||
|
||||
// recent files
|
||||
static void addToRecentFiles(const QString &fileName, Id editorId = Id());
|
||||
Q_SLOT void clearRecentFiles();
|
||||
@@ -155,9 +153,6 @@ signals:
|
||||
void documentRenamed(Core::IDocument *document, const QString &from, const QString &to);
|
||||
void projectsDirectoryChanged(const Utils::FileName &directory);
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *e) override;
|
||||
|
||||
private:
|
||||
explicit DocumentManager(QObject *parent);
|
||||
~DocumentManager() override;
|
||||
|
||||
Reference in New Issue
Block a user