forked from qt-creator/qt-creator
Core: Remove ICore::appMainWindow()
Not seriously needed. Change-Id: Ide001ce83f9e86306f5d13597716d2ab0d50abbf Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user