Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDialogStateSaver.h File Reference
#include "kritawidgetutils_export.h"
#include <QWidget>
#include <QString>
#include <QMap>
#include <QVariant>

Go to the source code of this file.

Namespaces

namespace  KisDialogStateSaver
 The KisDialogStateSaver class saves state for the specified widget in the kritarc file and restores it. Simply call saveState in your dialog's destructor, and use restoreState in the constructor.
 

Functions

KRITAWIDGETUTILS_EXPORT void KisDialogStateSaver::restoreState (QWidget *parent, const QString &dialogName, const QMap< QString, QVariant > &defaults=QMap< QString, QVariant >())
 restoreState restores the state of the dialog
 
KRITAWIDGETUTILS_EXPORT void KisDialogStateSaver::saveState (QWidget *parent, const QString &dialogName)
 saveState saves the state for the specified widgets