ResInsight/ApplicationCode/ProjectDataModel/RimTreeViewStateSerializer.h
Jacob Støren bb2eda3e73 (#379)(#377) Moved store/restore of tree view state to new tree
Also refactored slotCreateCommandObject
2015-08-17 09:38:27 +02:00

19 lines
545 B
C++

#pragma once
#include <QModelIndex>
class QTreeView;
class QString;
class QAbstractItemModel;
class RimTreeViewStateSerializer
{
public:
static void applyTreeViewStateFromString(QTreeView* treeView, const QString& treeViewState);
static void storeTreeViewStateToString (const QTreeView* treeView, QString& treeViewState);
static QModelIndex getModelIndexFromString(QAbstractItemModel* model, const QString& currentIndexString);
static void encodeStringFromModelIndex(const QModelIndex mi, QString& currentIndexString);
};