Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
pqPersistentMainWindowStateBehavior Class Reference

pqPersistentMainWindowStateBehavior saves and restores the MainWindow state on shutdown and restart. More...

#include <pqPersistentMainWindowStateBehavior.h>

Inherits QObject.

Public Member Functions

 pqPersistentMainWindowStateBehavior (QMainWindow *parent)
 Parent cannot be nullptr. More...
 
 ~pqPersistentMainWindowStateBehavior () override
 

Static Public Member Functions

static void restoreState (QMainWindow *)
 
static void saveState (QMainWindow *)
 

Protected Slots

void saveState ()
 
void restoreState ()
 

Detailed Description

pqPersistentMainWindowStateBehavior saves and restores the MainWindow state on shutdown and restart.

Simply instantiate this behavior if you want your main window layout to be persistent.

Definition at line 18 of file pqPersistentMainWindowStateBehavior.h.

Constructor & Destructor Documentation

◆ pqPersistentMainWindowStateBehavior()

pqPersistentMainWindowStateBehavior::pqPersistentMainWindowStateBehavior ( QMainWindow *  parent)

Parent cannot be nullptr.

◆ ~pqPersistentMainWindowStateBehavior()

pqPersistentMainWindowStateBehavior::~pqPersistentMainWindowStateBehavior ( )
override

Member Function Documentation

◆ restoreState() [1/2]

static void pqPersistentMainWindowStateBehavior::restoreState ( QMainWindow *  )
static

◆ saveState() [1/2]

static void pqPersistentMainWindowStateBehavior::saveState ( QMainWindow *  )
static

◆ saveState [2/2]

void pqPersistentMainWindowStateBehavior::saveState ( )
protectedslot

◆ restoreState [2/2]

void pqPersistentMainWindowStateBehavior::restoreState ( )
protectedslot

The documentation for this class was generated from the following file: