pqTreeViewExpandState.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqTreeViewExpandState_h
5 #define pqTreeViewExpandState_h
6 
7 #include "pqWidgetsModule.h" // for exports
8 #include <QObject>
9 #include <QScopedPointer> // for ivar
10 class QTreeView;
11 
44 {
45  Q_OBJECT
46  typedef QObject Superclass;
47 
48 public:
49  pqTreeViewExpandState(QObject* parent = nullptr);
50  ~pqTreeViewExpandState() override;
51 
52  void save(QTreeView* treeView);
53  void restore(QTreeView* treeView);
54 
55 private:
56  Q_DISABLE_COPY(pqTreeViewExpandState);
57  class pqInternals;
58  QScopedPointer<pqInternals> Internals;
59 };
60 
61 #endif
save/restore expand-state for items in a tree view.
#define PQWIDGETS_EXPORT
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))