forked from qt-creator/qt-creator
ModeManager: Remove old API that was used by old progress manager
Change-Id: Ia4083beb0b4a3eddc906af1b79e8bd5e6a36e47b Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -123,14 +123,6 @@ ModeManager::~ModeManager()
|
|||||||
m_instance = 0;
|
m_instance = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModeManager::addWidget(QWidget *widget)
|
|
||||||
{
|
|
||||||
// We want the actionbar to stay on the bottom
|
|
||||||
// so d->m_modeStack->cornerWidgetCount() -1 inserts it at the position immediately above
|
|
||||||
// the actionbar
|
|
||||||
d->m_modeStack->insertCornerWidget(d->m_modeStack->cornerWidgetCount() -1, widget);
|
|
||||||
}
|
|
||||||
|
|
||||||
IMode *ModeManager::currentMode()
|
IMode *ModeManager::currentMode()
|
||||||
{
|
{
|
||||||
int currentIndex = d->m_modeStack->currentIndex();
|
int currentIndex = d->m_modeStack->currentIndex();
|
||||||
|
@@ -60,7 +60,6 @@ public:
|
|||||||
|
|
||||||
static void addAction(QAction *action, int priority);
|
static void addAction(QAction *action, int priority);
|
||||||
static void addProjectSelector(QAction *action);
|
static void addProjectSelector(QAction *action);
|
||||||
static void addWidget(QWidget *widget);
|
|
||||||
|
|
||||||
static void activateMode(Id id);
|
static void activateMode(Id id);
|
||||||
static void setFocusToCurrentMode();
|
static void setFocusToCurrentMode();
|
||||||
|
Reference in New Issue
Block a user