mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-27 08:47:00 -06:00
bb2eda3e73
Also refactored slotCreateCommandObject
19 lines
545 B
C++
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);
|
|
};
|
|
|