forked from qt-creator/qt-creator
Fixes: - ProgressManagerInterface --> ProgressManager
Details: - Conform to conventions.
This commit is contained in:
@@ -45,7 +45,7 @@ using namespace Core;
|
||||
using namespace Core::Internal;
|
||||
|
||||
ProgressManagerPrivate::ProgressManagerPrivate(QObject *parent)
|
||||
: ProgressManagerInterface(parent)
|
||||
: ProgressManager(parent)
|
||||
{
|
||||
m_progressView = new ProgressView;
|
||||
ICore *core = CoreImpl::instance();
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
**
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef PROGRESSMANAGERINTERFACE_H
|
||||
#define PROGRESSMANAGERINTERFACE_H
|
||||
#ifndef PROGRESSMANAGER_H
|
||||
#define PROGRESSMANAGER_H
|
||||
|
||||
#include <coreplugin/core_global.h>
|
||||
#include <coreplugin/progressmanager/futureprogress.h>
|
||||
@@ -43,14 +43,14 @@
|
||||
|
||||
namespace Core {
|
||||
|
||||
class CORE_EXPORT ProgressManagerInterface : public QObject
|
||||
class CORE_EXPORT ProgressManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum PersistentType { CloseOnSuccess, KeepOnFinish };
|
||||
|
||||
ProgressManagerInterface(QObject *parent = 0) : QObject(parent) {}
|
||||
virtual ~ProgressManagerInterface() {}
|
||||
ProgressManager(QObject *parent = 0) : QObject(parent) {}
|
||||
virtual ~ProgressManager() {}
|
||||
|
||||
virtual FutureProgress *addTask(const QFuture<void> &future, const QString &title, const QString &type, PersistentType persistency = KeepOnFinish) = 0;
|
||||
|
||||
@@ -60,4 +60,4 @@ public slots:
|
||||
|
||||
} // namespace Core
|
||||
|
||||
#endif //PROGRESSMANAGERINTERFACE_H
|
||||
#endif //PROGRESSMANAGER_H
|
||||
@@ -34,7 +34,7 @@
|
||||
#ifndef PROGRESSMANAGER_P_H
|
||||
#define PROGRESSMANAGER_P_H
|
||||
|
||||
#include "progressmanagerinterface.h"
|
||||
#include "progressmanager.h"
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
#include <QtCore/QList>
|
||||
@@ -45,7 +45,7 @@ namespace Internal {
|
||||
|
||||
class ProgressView;
|
||||
|
||||
class ProgressManagerPrivate : public Core::ProgressManagerInterface
|
||||
class ProgressManagerPrivate : public Core::ProgressManager
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
@@ -62,7 +62,7 @@ ProgressView::~ProgressView()
|
||||
FutureProgress *ProgressView::addTask(const QFuture<void> &future,
|
||||
const QString &title,
|
||||
const QString &type,
|
||||
ProgressManagerInterface::PersistentType persistency)
|
||||
ProgressManager::PersistentType persistency)
|
||||
{
|
||||
removeOldTasks(type);
|
||||
if (m_taskList.size() == 3)
|
||||
@@ -73,7 +73,7 @@ FutureProgress *ProgressView::addTask(const QFuture<void> &future,
|
||||
m_layout->insertWidget(0, progress);
|
||||
m_taskList.append(progress);
|
||||
m_type.insert(progress, type);
|
||||
m_keep.insert(progress, (persistency == ProgressManagerInterface::KeepOnFinish));
|
||||
m_keep.insert(progress, (persistency == ProgressManager::KeepOnFinish));
|
||||
connect(progress, SIGNAL(finished()), this, SLOT(slotFinished()));
|
||||
return progress;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#ifndef PROGRESSVIEW_H
|
||||
#define PROGRESSVIEW_H
|
||||
|
||||
#include "progressmanagerinterface.h"
|
||||
#include "progressmanager.h"
|
||||
|
||||
#include <QtCore/QFuture>
|
||||
#include <QtGui/QWidget>
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
FutureProgress *addTask(const QFuture<void> &future,
|
||||
const QString &title,
|
||||
const QString &type,
|
||||
ProgressManagerInterface::PersistentType persistency);
|
||||
ProgressManager::PersistentType persistency);
|
||||
|
||||
private slots:
|
||||
void slotFinished();
|
||||
|
||||
Reference in New Issue
Block a user