forked from qt-creator/qt-creator
Design mode integration
Moved Qt Designer to open from Design Mode. Also, Design mode is now global, and created in coreplugin. Other plugins can register themselves to it.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user