summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/designmodewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/designmodewidget.cpp')
-rw-r--r--src/plugins/qmldesigner/designmodewidget.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/plugins/qmldesigner/designmodewidget.cpp b/src/plugins/qmldesigner/designmodewidget.cpp
index 6da38ce63a..99e0acb31b 100644
--- a/src/plugins/qmldesigner/designmodewidget.cpp
+++ b/src/plugins/qmldesigner/designmodewidget.cpp
@@ -28,7 +28,6 @@
**************************************************************************/
#include "designmodewidget.h"
-#include "designmode.h"
#include "qmldesignerconstants.h"
#include <model.h>
@@ -471,9 +470,8 @@ ModelNode DocumentWidget::nodeForPosition(int cursorPos) const
}
// ---------- DesignModeWidget
-DesignModeWidget::DesignModeWidget(DesignMode *designMode, QWidget *parent) :
+DesignModeWidget::DesignModeWidget(QWidget *parent) :
QWidget(parent),
- m_designMode(designMode),
m_documentWidgetStack(new QStackedWidget),
m_currentDocumentWidget(0),
m_currentTextEdit(0),
@@ -603,11 +601,6 @@ QAction *DesignModeWidget::selectAllAction() const
return m_selectAllAction;
}
-DesignMode *DesignModeWidget::designMode() const
-{
- return m_designMode;
-}
-
void DesignModeWidget::undo()
{
if (m_currentDocumentWidget)