diff --git a/src/plugins/coreplugin/coreplugin.pro b/src/plugins/coreplugin/coreplugin.pro index 452e71cb230..1b8cd43a037 100644 --- a/src/plugins/coreplugin/coreplugin.pro +++ b/src/plugins/coreplugin/coreplugin.pro @@ -112,7 +112,7 @@ HEADERS += mainwindow.h \ dialogs/openwithdialog.h \ dialogs/iwizard.h \ dialogs/ioptionspage.h \ - progressmanager/progressmanager.h \ + progressmanager/progressmanager_p.h \ progressmanager/progressview.h \ progressmanager/progresspie.h \ progressmanager/futureprogress.h \ diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index b49628e9143..9ca69278e7e 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -49,7 +49,7 @@ #include "newdialog.h" #include "outputpane.h" #include "plugindialog.h" -#include "progressmanager.h" +#include "progressmanager_p.h" #include "progressview.h" #include "shortcutsettings.h" #include "vcsmanager.h" @@ -118,7 +118,7 @@ MainWindow::MainWindow() : m_actionManager(new ActionManagerPrivate(this, m_uniqueIDManager)), m_editorManager(0), m_fileManager(new FileManager(m_coreImpl, this)), - m_progressManager(new ProgressManager()), + m_progressManager(new ProgressManagerPrivate()), m_scriptManager(new ScriptManager(this, m_coreImpl)), m_variableManager(new VariableManager(this)), m_vcsManager(new VCSManager()), diff --git a/src/plugins/coreplugin/mainwindow.h b/src/plugins/coreplugin/mainwindow.h index 1256baaf79a..0c8db3d94b6 100644 --- a/src/plugins/coreplugin/mainwindow.h +++ b/src/plugins/coreplugin/mainwindow.h @@ -80,7 +80,7 @@ class FancyTabWidget; class GeneralSettings; class NavigationWidget; class OutputPane; -class ProgressManager; +class ProgressManagerPrivate; class ShortcutSettings; class ViewManager; class VersionDialog; @@ -180,7 +180,7 @@ private: EditorManager *m_editorManager; FileManager *m_fileManager; MessageManager *m_messageManager; - ProgressManager *m_progressManager; + ProgressManagerPrivate *m_progressManager; ScriptManagerInterface *m_scriptManager; VariableManager *m_variableManager; VCSManager *m_vcsManager; diff --git a/src/plugins/coreplugin/progressmanager/progressmanager.cpp b/src/plugins/coreplugin/progressmanager/progressmanager.cpp index ab1b0370323..ce7ac13999e 100644 --- a/src/plugins/coreplugin/progressmanager/progressmanager.cpp +++ b/src/plugins/coreplugin/progressmanager/progressmanager.cpp @@ -31,7 +31,7 @@ ** ***************************************************************************/ -#include "progressmanager.h" +#include "progressmanager_p.h" #include "progressview.h" #include "coreimpl.h" #include "baseview.h" @@ -44,7 +44,7 @@ using namespace Core; using namespace Core::Internal; -ProgressManager::ProgressManager(QObject *parent) +ProgressManagerPrivate::ProgressManagerPrivate(QObject *parent) : ProgressManagerInterface(parent) { m_progressView = new ProgressView; @@ -52,15 +52,15 @@ ProgressManager::ProgressManager(QObject *parent) connect(core, SIGNAL(coreAboutToClose()), this, SLOT(cancelAllRunningTasks())); } -ProgressManager::~ProgressManager() +ProgressManagerPrivate::~ProgressManagerPrivate() { } -void ProgressManager::init() +void ProgressManagerPrivate::init() { } -void ProgressManager::cancelTasks(const QString &type) +void ProgressManagerPrivate::cancelTasks(const QString &type) { QMap *, QString>::iterator task = m_runningTasks.begin(); while (task != m_runningTasks.end()) { @@ -75,7 +75,7 @@ void ProgressManager::cancelTasks(const QString &type) } } -void ProgressManager::cancelAllRunningTasks() +void ProgressManagerPrivate::cancelAllRunningTasks() { QMap *, QString>::const_iterator task = m_runningTasks.constBegin(); while (task != m_runningTasks.constEnd()) { @@ -87,7 +87,7 @@ void ProgressManager::cancelAllRunningTasks() m_runningTasks.clear(); } -FutureProgress *ProgressManager::addTask(const QFuture &future, const QString &title, const QString &type, PersistentType persistency) +FutureProgress *ProgressManagerPrivate::addTask(const QFuture &future, const QString &title, const QString &type, PersistentType persistency) { QFutureWatcher *watcher = new QFutureWatcher(); m_runningTasks.insert(watcher, type); @@ -96,12 +96,12 @@ FutureProgress *ProgressManager::addTask(const QFuture &future, const QStr return m_progressView->addTask(future, title, type, persistency); } -QWidget *ProgressManager::progressView() +QWidget *ProgressManagerPrivate::progressView() { return m_progressView; } -void ProgressManager::taskFinished() +void ProgressManagerPrivate::taskFinished() { QObject *taskObject = sender(); QTC_ASSERT(taskObject, return); diff --git a/src/plugins/coreplugin/progressmanager/progressmanager.h b/src/plugins/coreplugin/progressmanager/progressmanager_p.h similarity index 89% rename from src/plugins/coreplugin/progressmanager/progressmanager.h rename to src/plugins/coreplugin/progressmanager/progressmanager_p.h index 7df78fe26b8..751e6c7553c 100644 --- a/src/plugins/coreplugin/progressmanager/progressmanager.h +++ b/src/plugins/coreplugin/progressmanager/progressmanager_p.h @@ -31,8 +31,8 @@ ** ***************************************************************************/ -#ifndef PROGRESSMANAGER_H -#define PROGRESSMANAGER_H +#ifndef PROGRESSMANAGER_P_H +#define PROGRESSMANAGER_P_H #include "progressmanagerinterface.h" @@ -45,12 +45,12 @@ namespace Internal { class ProgressView; -class ProgressManager : public Core::ProgressManagerInterface +class ProgressManagerPrivate : public Core::ProgressManagerInterface { Q_OBJECT public: - ProgressManager(QObject *parent = 0); - ~ProgressManager(); + ProgressManagerPrivate(QObject *parent = 0); + ~ProgressManagerPrivate(); void init(); FutureProgress *addTask(const QFuture &future, const QString &title, const QString &type, PersistentType persistency); @@ -71,4 +71,4 @@ private: } // namespace Internal } // namespace Core -#endif // PROGRESSMANAGER_H +#endif // PROGRESSMANAGER_P_H diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index df611294751..f129d507b67 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -49,7 +49,7 @@ #include #include #include -#include +#include #include