Commit d18bf468 authored by Konstantin Tokarev's avatar Konstantin Tokarev Committed by hjk
Browse files

Changed return type of :ICore::mainWindow() to QWidget*



Also removed all <QMainWindow> includes which are not needed
anymore.

Change-Id: I393c9a62a5c6df95d9f35d872e1473a4f13bcdc4
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent a4fcd8d3
......@@ -52,7 +52,6 @@
#include <QApplication>
#include <QDesktopServices>
#include <QMainWindow>
#include <QMessageBox>
#ifdef ENABLE_QT_BREAKPAD
......
......@@ -90,7 +90,6 @@
#include <QLabel>
#include <QCheckBox>
#include <QDialogButtonBox>
#include <QMainWindow>
#include <QPushButton>
using namespace Core;
......
......@@ -47,7 +47,6 @@
#include <QtPlugin>
#include <QMessageBox>
#include <QMainWindow>
#include <QApplication>
using namespace Analyzer;
......
......@@ -44,7 +44,6 @@
#include <QMenu>
#include <QAction>
#include <QMainWindow>
#include <QMessageBox>
#include <QHBoxLayout>
#include <QLineEdit>
......
......@@ -63,7 +63,6 @@
#include <QDateTime>
#include <QProcess>
#include <QFormLayout>
#include <QMainWindow>
#include <QInputDialog>
#include <QFileSystemWatcher>
......
......@@ -39,7 +39,6 @@
#include <QAction>
#include <QShortcut>
#include <QMainWindow>
/*!
\class Core::Command
......
......@@ -54,7 +54,6 @@
#include <QMessageBox>
#include <QWizard>
#include <QMainWindow>
#include <QIcon>
enum { debugWizard = 0 };
......
......@@ -78,7 +78,6 @@
#include <QApplication>
#include <QFileDialog>
#include <QLayout>
#include <QMainWindow>
#include <QMenu>
#include <QMessageBox>
#include <QPushButton>
......
......@@ -38,7 +38,6 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/icore.h>
#include <QMainWindow>
#include <QMessageBox>
#include <QCoreApplication>
......
......@@ -513,7 +513,7 @@ IContext *ICore::currentContextObject()
}
QMainWindow *ICore::mainWindow()
QWidget *ICore::mainWindow()
{
return m_mainwindow;
}
......
......@@ -37,9 +37,9 @@
#include <QSettings>
QT_BEGIN_NAMESPACE
class QMainWindow;
class QPrinter;
class QStatusBar;
class QWidget;
template <class T> class QList;
QT_END_NAMESPACE
......@@ -112,7 +112,7 @@ public:
static QString resourcePath();
static QString userResourcePath();
static QMainWindow *mainWindow();
static QWidget *mainWindow();
static QStatusBar *statusBar();
static IContext *currentContextObject();
......
......@@ -47,7 +47,6 @@
#include <QDockWidget>
#include <QLabel>
#include <QLineEdit>
#include <QMainWindow>
#include <QMenuBar>
#include <QPainter>
#include <QPixmap>
......
......@@ -64,7 +64,6 @@
#include <QApplication>
#include <QClipboard>
#include <QMenu>
#include <QMainWindow>
#include <QInputDialog>
#include <QUrl>
......
......@@ -48,7 +48,6 @@
#include <QMessageBox>
#include <QApplication>
#include <QMainWindow>
#include <QPushButton>
namespace CodePaster {
......
......@@ -112,7 +112,6 @@
#include <QToolBar>
#include <QTreeView>
#include <QSortFilterProxyModel>
#include <QMainWindow>
#include <sstream>
......
......@@ -56,7 +56,6 @@
#include <QStyle>
#include <QIcon>
#include <QApplication>
#include <QMainWindow>
#include <QMoveEvent>
#include <QDesktopWidget>
#include <QScrollBar>
......
......@@ -95,7 +95,6 @@
#include <QAction>
#include <QDialogButtonBox>
#include <QLabel>
#include <QMainWindow>
#include <QMessageBox>
#include <QPushButton>
......
......@@ -47,7 +47,6 @@
#include <extensionsystem/invoker.h>
#include <QMessageBox>
#include <QMainWindow>
#include <QVBoxLayout>
#include <cstring>
......
......@@ -44,7 +44,6 @@
#include <cppeditor/cppeditorconstants.h>
#include <QTimer>
#include <QMainWindow>
namespace Debugger {
namespace Internal {
......
......@@ -76,7 +76,6 @@
#include <QAction>
#include <QApplication>
#include <QMainWindow>
#include <QMessageBox>
#include <QPlainTextEdit>
#include <QToolTip>
......
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