Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/componentchooserbrowser.h
Show All 10 Lines | |||||
11 | * it under the terms of the GNU General Public License version 2 as * | 11 | * it under the terms of the GNU General Public License version 2 as * | ||
12 | * published by the Free Software Foundationi * | 12 | * published by the Free Software Foundationi * | ||
13 | * * | 13 | * * | ||
14 | ***************************************************************************/ | 14 | ***************************************************************************/ | ||
15 | 15 | | |||
16 | #ifndef COMPONENTCHOOSERBROWSER_H | 16 | #ifndef COMPONENTCHOOSERBROWSER_H | ||
17 | #define COMPONENTCHOOSERBROWSER_H | 17 | #define COMPONENTCHOOSERBROWSER_H | ||
18 | 18 | | |||
19 | #include "ui_browserconfig_ui.h" | | |||
20 | #include "componentchooser.h" | 19 | #include "componentchooser.h" | ||
20 | #include <QComboBox> | ||||
21 | 21 | | |||
22 | class CfgBrowser: public QWidget, public Ui::BrowserConfig_UI, public CfgPlugin | 22 | class CfgBrowser: public QComboBox, public CfgPlugin | ||
23 | { | 23 | { | ||
24 | Q_OBJECT | 24 | Q_OBJECT | ||
25 | public: | 25 | public: | ||
26 | CfgBrowser(QWidget *parent); | 26 | CfgBrowser(QWidget *parent); | ||
27 | ~CfgBrowser() override; | 27 | ~CfgBrowser() override; | ||
28 | void load(KConfig *cfg) override; | 28 | void load(KConfig *cfg) override; | ||
29 | void save(KConfig *cfg) override; | 29 | void save(KConfig *cfg) override; | ||
30 | void defaults() override; | 30 | void defaults() override; | ||
31 | bool isDefaults() const override; | 31 | bool isDefaults() const override; | ||
32 | bool hasChanged() const override; | ||||
32 | 33 | | |||
33 | protected Q_SLOTS: | 34 | protected Q_SLOTS: | ||
34 | void selectBrowser(int index); | 35 | void selectBrowser(int index); | ||
35 | 36 | | |||
36 | Q_SIGNALS: | 37 | Q_SIGNALS: | ||
37 | void changed(bool); | 38 | void changed(bool); | ||
38 | private: | 39 | private: | ||
39 | int m_currentIndex = -1; | 40 | int m_currentIndex = -1; | ||
40 | int m_falkonIndex = -1; | 41 | int m_falkonIndex = -1; | ||
41 | }; | 42 | }; | ||
42 | 43 | | |||
43 | #endif /* COMPONENTCHOOSERBROWSER_H */ | 44 | #endif /* COMPONENTCHOOSERBROWSER_H */ | ||
44 | 45 | |