forked from qt-creator/qt-creator
file manager: introduce saveFile() and remove blockFileChange() & unblockFileChange()
this replaces the ever-repeating idiom block/save/unblock with a single call.
This commit is contained in:
@@ -79,9 +79,6 @@ public:
|
||||
|
||||
void renamedFile(const QString &from, const QString &to);
|
||||
|
||||
void blockFileChange(IFile *file);
|
||||
void unblockFileChange(IFile *file);
|
||||
|
||||
void expectFileChange(const QString &fileName);
|
||||
void unexpectFileChange(const QString &fileName);
|
||||
|
||||
@@ -97,6 +94,8 @@ public:
|
||||
// helper methods
|
||||
static QString fixFileName(const QString &fileName, FixMode fixmode);
|
||||
|
||||
bool saveFile(IFile *file, const QString &fileName = QString());
|
||||
|
||||
QStringList getOpenFileNames(const QString &filters,
|
||||
const QString path = QString(),
|
||||
QString *selectedFilter = 0);
|
||||
|
||||
Reference in New Issue
Block a user