Changeset View
Changeset View
Standalone View
Standalone View
kcm/src/widget.h
Show All 37 Lines | |||||
38 | class QQuickView; | 38 | class QQuickView; | ||
39 | class QQuickWidget; | 39 | class QQuickWidget; | ||
40 | 40 | | |||
41 | namespace KScreen | 41 | namespace KScreen | ||
42 | { | 42 | { | ||
43 | class ConfigOperation; | 43 | class ConfigOperation; | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | namespace Ui | ||||
47 | { | ||||
48 | class KScreenWidget; | ||||
zzag: Coding style nitpick:
```lang=cpp
namespace Ui
{
class KScreenWidget;
}
``` | |||||
49 | } | ||||
50 | | ||||
46 | class Widget : public QWidget | 51 | class Widget : public QWidget | ||
47 | { | 52 | { | ||
48 | Q_OBJECT | 53 | Q_OBJECT | ||
49 | 54 | | |||
50 | public: | 55 | public: | ||
51 | explicit Widget(QWidget *parent = nullptr); | 56 | explicit Widget(QWidget *parent = nullptr); | ||
52 | ~Widget() override; | 57 | ~Widget() override; | ||
53 | 58 | | |||
Show All 30 Lines | |||||
84 | private: | 89 | private: | ||
85 | void loadQml(); | 90 | void loadQml(); | ||
86 | void resetPrimaryCombo(); | 91 | void resetPrimaryCombo(); | ||
87 | void addOutputToPrimaryCombo(const KScreen::OutputPtr &output); | 92 | void addOutputToPrimaryCombo(const KScreen::OutputPtr &output); | ||
88 | 93 | | |||
89 | KScreen::OutputPtr findOutput(const KScreen::ConfigPtr &config, const QVariantMap &info); | 94 | KScreen::OutputPtr findOutput(const KScreen::ConfigPtr &config, const QVariantMap &info); | ||
90 | 95 | | |||
91 | private: | 96 | private: | ||
97 | Ui::KScreenWidget *ui; | ||||
zzag: Naming nitpick: mUi | |||||
92 | QMLScreen *mScreen = nullptr; | 98 | QMLScreen *mScreen = nullptr; | ||
93 | KScreen::ConfigPtr mConfig = nullptr; | 99 | KScreen::ConfigPtr mConfig = nullptr; | ||
94 | KScreen::ConfigPtr mPrevConfig = nullptr; | 100 | KScreen::ConfigPtr mPrevConfig = nullptr; | ||
95 | 101 | | |||
96 | QQuickWidget *mDeclarativeView = nullptr; | | |||
97 | ControlPanel *mControlPanel = nullptr; | 102 | ControlPanel *mControlPanel = nullptr; | ||
98 | 103 | | |||
99 | ProfilesModel *mProfilesModel = nullptr; | 104 | ProfilesModel *mProfilesModel = nullptr; | ||
100 | QComboBox *mPrimaryCombo = nullptr; | | |||
101 | QLabel *mPrimaryLabel = nullptr; | | |||
102 | QComboBox *mProfilesCombo = nullptr; | 105 | QComboBox *mProfilesCombo = nullptr; | ||
103 | | ||||
104 | QPushButton *mScaleAllOutputsButton = nullptr; | | |||
105 | QPushButton *mUnifyButton = nullptr; | | |||
106 | QPushButton *mSaveProfileButton = nullptr; | 106 | QPushButton *mSaveProfileButton = nullptr; | ||
107 | 107 | | |||
108 | QList<QQuickView*> mOutputIdentifiers; | 108 | QList<QQuickView*> mOutputIdentifiers; | ||
109 | QTimer *mOutputTimer = nullptr; | 109 | QTimer *mOutputTimer = nullptr; | ||
110 | | ||||
111 | }; | 110 | }; | ||
112 | 111 | | |||
113 | #endif // WIDGET_H | 112 | #endif // WIDGET_H |
Coding style nitpick: