Changeset View
Changeset View
Standalone View
Standalone View
kcm/src/widget.cpp
Show All 27 Lines | |||||
28 | #include <QLabel> | 28 | #include <QLabel> | ||
29 | #include <QTimer> | 29 | #include <QTimer> | ||
30 | #include <QtGlobal> | 30 | #include <QtGlobal> | ||
31 | 31 | | |||
32 | #include "declarative/qmloutput.h" | 32 | #include "declarative/qmloutput.h" | ||
33 | #include "declarative/qmlscreen.h" | 33 | #include "declarative/qmlscreen.h" | ||
34 | #include "utils.h" | 34 | #include "utils.h" | ||
35 | #include "scalingconfig.h" | 35 | #include "scalingconfig.h" | ||
36 | #include "../../common/control.h" | ||||
36 | 37 | | |||
37 | #include <kscreen/output.h> | 38 | #include <kscreen/output.h> | ||
38 | #include <kscreen/edid.h> | 39 | #include <kscreen/edid.h> | ||
39 | #include <kscreen/mode.h> | 40 | #include <kscreen/mode.h> | ||
40 | #include <kscreen/config.h> | 41 | #include <kscreen/config.h> | ||
41 | #include <kscreen/getconfigoperation.h> | 42 | #include <kscreen/getconfigoperation.h> | ||
42 | #include <kscreen/configmonitor.h> | 43 | #include <kscreen/configmonitor.h> | ||
43 | 44 | | |||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 85 | connect(ui->unifyButton, &QPushButton::released, | |||
87 | }); | 88 | }); | ||
88 | 89 | | |||
89 | connect(ui->scaleAllOutputsButton, &QPushButton::released, | 90 | connect(ui->scaleAllOutputsButton, &QPushButton::released, | ||
90 | [this] { | 91 | [this] { | ||
91 | QPointer<ScalingConfig> dialog = new ScalingConfig(mConfig->outputs(), this); | 92 | QPointer<ScalingConfig> dialog = new ScalingConfig(mConfig->outputs(), this); | ||
92 | dialog->exec(); | 93 | dialog->exec(); | ||
93 | delete dialog; | 94 | delete dialog; | ||
94 | }); | 95 | }); | ||
96 | connect(this, &Widget::saveControls, mControlPanel, &ControlPanel::save); | ||||
95 | 97 | | |||
96 | mOutputTimer = new QTimer(this); | 98 | mOutputTimer = new QTimer(this); | ||
97 | connect(mOutputTimer, &QTimer::timeout, | 99 | connect(mOutputTimer, &QTimer::timeout, | ||
98 | this, &Widget::clearOutputIdentifiers); | 100 | this, &Widget::clearOutputIdentifiers); | ||
99 | 101 | | |||
100 | loadQml(); | 102 | loadQml(); | ||
101 | } | 103 | } | ||
102 | 104 | | |||
▲ Show 20 Lines • Show All 452 Lines • Show Last 20 Lines |