Qt
ApplicationComponents
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
7
#include "
pqApplicationComponentsModule.h
"
8
#include <QObject>
9
10
class
QMainWindow;
11
18
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqPersistentMainWindowStateBehavior
:
public
QObject
19
{
20
Q_OBJECT
21
typedef
QObject Superclass;
22
23
public
:
27
pqPersistentMainWindowStateBehavior
(QMainWindow* parent);
28
~
pqPersistentMainWindowStateBehavior
()
override
;
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
:
38
Q_DISABLE_COPY(
pqPersistentMainWindowStateBehavior
)
39
};
40
41
#endif
PQAPPLICATIONCOMPONENTS_EXPORT
#define PQAPPLICATIONCOMPONENTS_EXPORT
Definition:
pqApplicationComponentsModule.h:15
pqPersistentMainWindowStateBehavior
pqPersistentMainWindowStateBehavior saves and restores the MainWindow state on shutdown and restart...
Definition:
pqPersistentMainWindowStateBehavior.h:18
pqApplicationComponentsModule.h
Generated by
1.8.13 on Tue Oct 1 2024