diff options
author | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2016-04-29 10:31:21 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2016-04-29 08:43:31 +0000 |
commit | 5c45e9ec343d8edaddfd0a1f92ca4bc2a307923c (patch) | |
tree | 7f8ab18a730d61f48544655a9eb5e97d36cc527d /src/plugins/qmljseditor/qmljscomponentnamedialog.h | |
parent | 1ba0e5cdf954a53b383ae3fdcf47233e93d219e8 (diff) |
QmlJSEditor: Improving ComponentFromObjectDef
Now the use can choose which properties are defined
inside the component and which properties are kept in the
original file. To make the concept clear the dialog contains
a snippet of the generated code.
Change-Id: I92f9f241c9780345dd03b991232c4a811356c266
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmljseditor/qmljscomponentnamedialog.h')
-rw-r--r-- | src/plugins/qmljseditor/qmljscomponentnamedialog.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljscomponentnamedialog.h b/src/plugins/qmljseditor/qmljscomponentnamedialog.h index b7c5a7335f..4530914236 100644 --- a/src/plugins/qmljseditor/qmljscomponentnamedialog.h +++ b/src/plugins/qmljseditor/qmljscomponentnamedialog.h @@ -40,7 +40,16 @@ public: explicit ComponentNameDialog(QWidget *parent = 0); ~ComponentNameDialog(); - static bool go(QString *proposedName, QString *proposedPath, QWidget *parent = 0); + static bool go(QString *proposedName, QString *proposedPath, + const QStringList &properties, const QStringList &sourcePreview, const QString &oldFileName, + QStringList *result, + QWidget *parent = 0); + + void setProperties(const QStringList &properties); + + QStringList propertiesToKeep() const; + + void generateCodePreview(); public slots: void choosePath(); @@ -51,6 +60,7 @@ protected: private: Ui::ComponentNameDialog *ui; + QStringList m_sourcePreview; }; } // namespace Internal |