QmlDesigner.componentView: cleaning up

There was some dead code I removed.
I also refactored the node removal and made it more robust.

Change-Id: I3bd566011302968c1d798689fcca3b4a3880b306
Reviewed-on: http://codereview.qt.nokia.com/417
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
Thomas Hartmann
2011-06-09 11:34:13 +02:00
parent 0793a8dfb8
commit f38b0e7bd8
2 changed files with 13 additions and 22 deletions

View File

@@ -113,11 +113,10 @@ private: //functions
void searchForComponentAndAddToList(const ModelNode &node);
void searchForComponentAndRemoveFromList(const ModelNode &node);
void appendWholeDocumentAsComponent();
void removeSingleNodeFromList(const ModelNode &node);
private:
QStringList m_componentList;
QStandardItemModel *m_standardItemModel;
bool m_listChanged;
ComponentAction *m_componentAction;
};