forked from qt-creator/qt-creator
Export FormWindowEditor from the designer plugin.
The Qt4ProjectManagerPlugin needs that for the dynamic ui completion. Reviewed-By: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user