mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-04 12:40:58 -06:00
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);
|
||
|
};
|
||
|
|