Changeset View
Changeset View
Standalone View
Standalone View
src/advanceconfig.h
Show All 35 Lines | 35 | public: | |||
---|---|---|---|---|---|
36 | explicit AdvanceConfig(const KSharedConfigPtr &config, QWidget *parent = nullptr); | 36 | explicit AdvanceConfig(const KSharedConfigPtr &config, QWidget *parent = nullptr); | ||
37 | ~AdvanceConfig(); | 37 | ~AdvanceConfig(); | ||
38 | 38 | | |||
39 | QVariantMap save(); | 39 | QVariantMap save(); | ||
40 | 40 | | |||
41 | Q_SIGNALS: | 41 | Q_SIGNALS: | ||
42 | void changed(bool changed=true); | 42 | void changed(bool changed=true); | ||
43 | 43 | | |||
44 | public Q_SLOTS: | ||||
45 | void syncSettingsChanged(); | ||||
46 | void resetSettingsChanged(); | ||||
47 | | ||||
44 | private Q_SLOTS: | 48 | private Q_SLOTS: | ||
45 | void slotUidRangeChanged(); | 49 | void slotUidRangeChanged(); | ||
46 | 50 | | |||
47 | private: | 51 | private: | ||
48 | void load(); | 52 | void load(); | ||
49 | bool isUidRangeValid(int minUid, int maxUid) const; | 53 | bool isUidRangeValid(int minUid, int maxUid) const; | ||
50 | 54 | | |||
51 | private: | 55 | private: | ||
52 | Ui::AdvanceConfig *configUi; | 56 | Ui::AdvanceConfig *configUi; | ||
53 | KSharedConfigPtr mConfig; | 57 | KSharedConfigPtr mConfig; | ||
54 | SortProxyModel *proxyCursorModel; | 58 | SortProxyModel *proxyCursorModel; | ||
55 | UsersModel *userModel; | 59 | UsersModel *userModel; | ||
56 | SessionModel *sessionModel; | 60 | SessionModel *sessionModel; | ||
57 | }; | 61 | }; | ||
58 | 62 | | |||
59 | #endif // ADVANCECONFIG_H | 63 | #endif // ADVANCECONFIG_H |