Skip to content
Snippets Groups Projects
Commit 9c9b38e9 authored by dt's avatar dt
Browse files

Export FormWindowEditor from the designer plugin.


The Qt4ProjectManagerPlugin needs that for the dynamic ui completion.

Reviewed-By: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 5c991647
No related branches found
No related tags found
No related merge requests found
TEMPLATE = lib
TARGET = Designer
DEFINES += DESIGNER_LIBRARY
include(../../qtcreatorplugin.pri)
include(../../shared/designerintegrationv2/designerintegration.pri)
......@@ -33,7 +34,8 @@ HEADERS += formeditorplugin.h \
formeditorw.h \
settingsmanager.h \
formtemplatewizardpage.h \
formwizarddialog.h
formwizarddialog.h \
designer_export.h
SOURCES += formeditorplugin.cpp \
formeditorfactory.cpp \
......
......@@ -356,3 +356,10 @@ QString FormWindowEditor::contextHelpId() const
return className;
#endif
}
QString FormWindowEditor::contents() const
{
if (m_host && m_host->formWindow())
return m_host->formWindow()->contents();
return QString::null;
}
......@@ -35,6 +35,8 @@
#include <QtCore/QByteArray>
#include <QtCore/QStringList>
#include "designer_export.h"
QT_BEGIN_NAMESPACE
class QDesignerFormWindowInterface;
class QDesignerFormWindowManagerInterface;
......@@ -56,7 +58,7 @@ class EditorWidget;
// Master class maintaining a form window editor,
// containing file and widget host
class FormWindowEditor : public Core::IEditor
class DESIGNER_EXPORT FormWindowEditor : public Core::IEditor
{
Q_OBJECT
public:
......@@ -88,6 +90,8 @@ public:
void updateFormWindowSelectionHandles(bool state);
void setSuggestedFileName(const QString &fileName);
QString contents() const;
signals:
// Internal
void opened(const QString &fileName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment