forked from qt-creator/qt-creator
Refactoring document handling
The document handling in the qml designer was complicated source code, which was initially intended for a non creator application. To integrate new views it has to be changed and cleaned up. This is the first major step in that direction. Change-Id: Ie26f0aad7a03946d18bdb4c0759b246c5439d922 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QStandardItemModel;
|
||||
class QComboBox;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace QmlDesigner {
|
||||
@@ -53,7 +54,7 @@ public:
|
||||
ModelNodeRole = Qt::UserRole
|
||||
};
|
||||
|
||||
ComponentView(QObject *parent);
|
||||
ComponentView(QObject *parent = 0);
|
||||
|
||||
void modelAttached(Model *model);
|
||||
void modelAboutToBeDetached(Model *model);
|
||||
@@ -106,6 +107,8 @@ public:
|
||||
|
||||
void setComponentNode(const ModelNode &node);
|
||||
|
||||
QWidget *widget();
|
||||
|
||||
signals:
|
||||
void componentListChanged(const QStringList &componentList);
|
||||
|
||||
@@ -118,6 +121,7 @@ private: //functions
|
||||
int indexForNode(const ModelNode &node);
|
||||
|
||||
private:
|
||||
QList<QComboBox*> m_comboBoxList;
|
||||
QStandardItemModel *m_standardItemModel;
|
||||
ComponentAction *m_componentAction;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user