Commit 64f941ae authored by hjk's avatar hjk

Core: Remove ICore::appMainWindow()

Not seriously needed.

Change-Id: Ide001ce83f9e86306f5d13597716d2ab0d50abbf
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent df361843
......@@ -462,11 +462,6 @@ QWidget *ICore::mainWindow()
return m_mainwindow;
}
Utils::AppMainWindow *ICore::appMainWindow()
{
return m_mainwindow;
}
QStatusBar *ICore::statusBar()
{
return m_mainwindow->statusBar();
......
......@@ -43,10 +43,6 @@ class QWidget;
template <class T> class QList;
QT_END_NAMESPACE
namespace Utils {
class AppMainWindow;
}
namespace Core {
class IWizard;
class Context;
......@@ -101,7 +97,6 @@ public:
static QString buildCompatibilityString();
static QWidget *mainWindow();
static Utils::AppMainWindow *appMainWindow();
static QStatusBar *statusBar();
/* Raises and activates the window for the widget. This contains workarounds for X11. */
static void raiseWindow(QWidget *widget);
......
......@@ -270,10 +270,10 @@ DebuggerMainWindow::~DebuggerMainWindow()
void DebuggerMainWindow::setCurrentEngine(DebuggerEngine *engine)
{
if (d->m_engine)
disconnect(d->m_engine, SIGNAL(raiseWindow()), ICore::appMainWindow(), SLOT(raiseWindow()));
disconnect(d->m_engine, SIGNAL(raiseWindow()), ICore::mainWindow(), SLOT(raiseWindow()));
d->m_engine = engine;
if (d->m_engine)
connect(d->m_engine, SIGNAL(raiseWindow()), ICore::appMainWindow(), SLOT(raiseWindow()));
connect(d->m_engine, SIGNAL(raiseWindow()), ICore::mainWindow(), SLOT(raiseWindow()));
}
DebuggerLanguages DebuggerMainWindow::activeDebugLanguages() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment