mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Also refactored slotCreateCommandObject
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user