forked from qt-creator/qt-creator
Unify pattern used for privates and constructors
In the 'managers' from ICore Change-Id: Iab98c9e0947b759843a62e3777ba46be3b304b06 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -47,6 +47,8 @@ namespace Core {
|
||||
class IContext;
|
||||
class IDocument;
|
||||
|
||||
namespace Internal { class MainWindow; }
|
||||
|
||||
class CORE_EXPORT DocumentManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -58,9 +60,6 @@ public:
|
||||
|
||||
typedef QPair<QString, Id> RecentFile;
|
||||
|
||||
explicit DocumentManager(QMainWindow *ew);
|
||||
virtual ~DocumentManager();
|
||||
|
||||
static DocumentManager *instance();
|
||||
|
||||
// file pool to monitor
|
||||
@@ -152,6 +151,12 @@ private slots:
|
||||
void checkForReload();
|
||||
void changedFile(const QString &file);
|
||||
void syncWithEditor(const QList<Core::IContext *> &context);
|
||||
|
||||
private:
|
||||
explicit DocumentManager(QMainWindow *ew);
|
||||
virtual ~DocumentManager();
|
||||
|
||||
friend class Core::Internal::MainWindow;
|
||||
};
|
||||
|
||||
/*! The FileChangeBlocker blocks all change notifications to all IDocument * that
|
||||
|
||||
Reference in New Issue
Block a user