QmlDesigner: Add master to component view

Change-Id: I236f78b73b8eea2b780e64d833fdedcfa7d246d1
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Marco Bubke
2013-09-26 18:46:39 +02:00
parent 0b82b54c24
commit defcfadd17
10 changed files with 70 additions and 5 deletions

View File

@@ -116,6 +116,7 @@ public:
ModelNode modelNode(int index) const;
void setComponentNode(const ModelNode &node);
void setComponentToMaster();
signals:
void componentListChanged(const QStringList &componentList);
@@ -126,6 +127,8 @@ private: //functions
void searchForComponentAndRemoveFromList(const ModelNode &node);
void removeSingleNodeFromList(const ModelNode &node);
int indexForNode(const ModelNode &node);
int indexOfMaster();
void addMasterDocument();
private:
QStandardItemModel *m_standardItemModel;