Changeset View
Changeset View
Standalone View
Standalone View
kcms/ksplash/kcm.h
Show All 32 Lines | 32 | { | |||
---|---|---|---|---|---|
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | Q_PROPERTY(QStandardItemModel *splashModel READ splashModel CONSTANT) | 34 | Q_PROPERTY(QStandardItemModel *splashModel READ splashModel CONSTANT) | ||
35 | Q_PROPERTY(QString selectedPlugin READ selectedPlugin WRITE setSelectedPlugin NOTIFY selectedPluginChanged) | 35 | Q_PROPERTY(QString selectedPlugin READ selectedPlugin WRITE setSelectedPlugin NOTIFY selectedPluginChanged) | ||
36 | Q_PROPERTY(int selectedPluginIndex READ selectedPluginIndex NOTIFY selectedPluginIndexChanged) | 36 | Q_PROPERTY(int selectedPluginIndex READ selectedPluginIndex NOTIFY selectedPluginIndexChanged) | ||
37 | 37 | | |||
38 | public: | 38 | public: | ||
39 | enum Roles { | 39 | enum Roles { | ||
40 | PluginNameRole = Qt::UserRole +1, | 40 | PluginNameRole = Qt::UserRole +1, | ||
41 | ScreenhotRole | 41 | ScreenhotRole, | ||
42 | DescriptionRole | ||||
42 | }; | 43 | }; | ||
43 | KCMSplashScreen(QObject* parent, const QVariantList& args); | 44 | KCMSplashScreen(QObject* parent, const QVariantList& args); | ||
44 | 45 | | |||
45 | QList<Plasma::Package> availablePackages(const QString &component); | 46 | QList<Plasma::Package> availablePackages(const QString &component); | ||
46 | 47 | | |||
47 | QStandardItemModel *splashModel(); | 48 | QStandardItemModel *splashModel(); | ||
48 | 49 | | |||
49 | QString selectedPlugin() const; | 50 | QString selectedPlugin() const; | ||
50 | void setSelectedPlugin(const QString &plugin); | 51 | void setSelectedPlugin(const QString &plugin); | ||
51 | 52 | | |||
52 | int selectedPluginIndex() const; | 53 | int selectedPluginIndex() const; | ||
53 | 54 | | |||
55 | void loadModel(); | ||||
56 | | ||||
54 | public Q_SLOTS: | 57 | public Q_SLOTS: | ||
55 | void getNewClicked(); | 58 | void getNewClicked(); | ||
56 | void load() override; | 59 | void load() override; | ||
57 | void save() override; | 60 | void save() override; | ||
58 | void defaults() override; | 61 | void defaults() override; | ||
59 | void test(const QString &plugin); | 62 | void test(const QString &plugin); | ||
60 | 63 | | |||
61 | Q_SIGNALS: | 64 | Q_SIGNALS: | ||
Show All 13 Lines |