In RimProject, encode/decode into a string the currentIndex from QTreeView.

This will also make sure the active view is restored when opening a project
p4#: 21463
This commit is contained in:
Magne Sjaastad
2013-04-26 19:05:35 +02:00
parent 3806ff9baf
commit ab8dfb4aad
5 changed files with 66 additions and 1 deletions

View File

@@ -46,6 +46,9 @@ public:
void applyTreeViewStateFromString(const QString& treeViewState);
void storeTreeViewStateToString(QString& treeViewState);
static void applyCurrentIndexFromString(QAbstractItemView& itemView, const QString& currentIndexString);
static void storeCurrentIndexToString(const QAbstractItemView& itemView, QString& currentIndexString);
protected:
void contextMenuEvent(QContextMenuEvent* event);