GammaRay API Documentation
3.2.0
|
Interface for UI plugins to manage their states. More...
#include <uistatemanager.h>
Public Slots | |
void | reset () |
virtual void | restoreState () |
virtual void | saveState () |
Interface for UI plugins to manage their states.
The manager is able to track if changes appear and only persists them in this case. That mean any not moved splitter handle will not be persisted, and % based sizes will works correctly even on resize. Any QMainwindow is always restored/saved.
There is now the possibility to implements custom restore/save state per targets. Just create those 2 public Q_INVOKABLE in the UIStateManager widget:
Usually, button checked, QTabWidget indexes... Do not store size related things or native Qt save/restore states here, that's the role of UIStateManager itself.