forked from qt-creator/qt-creator
Changed return type of :ICore::mainWindow() to QWidget*
Also removed all <QMainWindow> includes which are not needed anymore. Change-Id: I393c9a62a5c6df95d9f35d872e1473a4f13bcdc4 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -59,7 +59,6 @@
|
||||
#include <QList>
|
||||
|
||||
#include <QShortcut>
|
||||
#include <QMainWindow>
|
||||
#include <QAction>
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
@@ -228,7 +227,7 @@ bool MacroManager::MacroManagerPrivate::executeMacro(Macro *macro)
|
||||
|
||||
void MacroManager::MacroManagerPrivate::showSaveDialog()
|
||||
{
|
||||
QMainWindow *mainWindow = Core::ICore::mainWindow();
|
||||
QWidget *mainWindow = Core::ICore::mainWindow();
|
||||
SaveDialog dialog(mainWindow);
|
||||
if (dialog.exec()) {
|
||||
if (dialog.name().isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user