Warning, file /frameworks/kconfigwidgets/src/kconfigviewstatesaver.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 0002 #ifndef KCONFIGVIEWSTATESAVER_H 0003 #define KCONFIGVIEWSTATESAVER_H 0004 0005 #include <KViewStateSerializer> 0006 0007 #include "kconfigwidgets_export.h" 0008 0009 class KConfigGroup; 0010 0011 /** 0012 * @class KConfigViewStateSaver kconfigviewstatesaver.h KConfigViewStateSaver 0013 * 0014 * @brief Base class for saving and restoring state in QTreeViews and QItemSelectionModels using KConfig as storage 0015 */ 0016 class KCONFIGWIDGETS_EXPORT KConfigViewStateSaver : public KViewStateSerializer 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit KConfigViewStateSaver(QObject *parent = nullptr); 0021 0022 /** 0023 Saves the state to the @p configGroup 0024 */ 0025 void saveState(KConfigGroup &configGroup); 0026 0027 /** 0028 Restores the state from the @p configGroup 0029 */ 0030 void restoreState(const KConfigGroup &configGroup); 0031 }; 0032 0033 #endif