pqPersistentMainWindowStateBehavior.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 pqPersistentMainWindowStateBehavior_h
5 #define pqPersistentMainWindowStateBehavior_h
6 
8 #include <QObject>
9 
10 class QMainWindow;
11 
19 {
20  Q_OBJECT
21  typedef QObject Superclass;
22 
23 public:
27  pqPersistentMainWindowStateBehavior(QMainWindow* parent);
29 
30  static void restoreState(QMainWindow*);
31  static void saveState(QMainWindow*);
32 
33 protected Q_SLOTS:
34  void saveState();
35  void restoreState();
36 
37 private:
39 };
40 
41 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqPersistentMainWindowStateBehavior saves and restores the MainWindow state on shutdown and restart...