Commit 7aed3d3d authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Designer: Remove unused ctor argument



Change-Id: Ifb87032be0295f4fb9be32233989392afc3ff7c0
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 06615843
......@@ -43,7 +43,7 @@ namespace Internal {
// ---------- EditorWidget
EditorWidget::EditorWidget(FormEditorW *few, QWidget *parent) :
EditorWidget::EditorWidget(QWidget *parent) :
Utils::FancyMainWindow(parent),
m_stack(new FormEditorStack)
{
......@@ -54,7 +54,7 @@ EditorWidget::EditorWidget(FormEditorW *few, QWidget *parent) :
setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea);
setCorner(Qt::BottomRightCorner, Qt::RightDockWidgetArea);
QWidget * const*subs = few->designerSubWindows();
QWidget * const*subs = FormEditorW::designerSubWindows();
for (int i = 0; i < DesignerSubWindowCount; i++) {
QWidget *subWindow = subs[i];
subWindow->setWindowTitle(subs[i]->windowTitle());
......
......@@ -49,7 +49,6 @@ namespace Internal {
class EditorData;
class FormEditorStack;
class FormEditorW;
// Design mode main view.
class EditorWidget : public Utils::FancyMainWindow
......@@ -57,7 +56,7 @@ class EditorWidget : public Utils::FancyMainWindow
Q_OBJECT
public:
explicit EditorWidget(FormEditorW *fe, QWidget *parent = 0);
explicit EditorWidget(QWidget *parent = 0);
QDockWidget* const* designerDockWidgets() const;
......
......@@ -406,7 +406,7 @@ void FormEditorData::fullInit()
});
// Nest toolbar and editor widget
m_editorWidget = new EditorWidget(m_instance);
m_editorWidget = new EditorWidget;
QSettings *settings = ICore::settings();
settings->beginGroup(QLatin1String(settingsGroupC));
m_editorWidget->restoreSettings(settings);
......
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