Changeset View
Changeset View
Standalone View
Standalone View
kcm/src/widget.cpp
Show All 24 Lines | |||||
25 | #include <QLabel> | 25 | #include <QLabel> | ||
26 | #include <QTimer> | 26 | #include <QTimer> | ||
27 | #include <QtGlobal> | 27 | #include <QtGlobal> | ||
28 | 28 | | |||
29 | #include "declarative/qmloutput.h" | 29 | #include "declarative/qmloutput.h" | ||
30 | #include "declarative/qmlscreen.h" | 30 | #include "declarative/qmlscreen.h" | ||
31 | #include "utils.h" | 31 | #include "utils.h" | ||
32 | #include "scalingconfig.h" | 32 | #include "scalingconfig.h" | ||
33 | #include "../../common/control.h" | ||||
33 | 34 | | |||
34 | #include <kscreen/output.h> | 35 | #include <kscreen/output.h> | ||
35 | #include <kscreen/edid.h> | 36 | #include <kscreen/edid.h> | ||
36 | #include <kscreen/mode.h> | 37 | #include <kscreen/mode.h> | ||
37 | #include <kscreen/config.h> | 38 | #include <kscreen/config.h> | ||
38 | #include <kscreen/getconfigoperation.h> | 39 | #include <kscreen/getconfigoperation.h> | ||
39 | #include <kscreen/configmonitor.h> | 40 | #include <kscreen/configmonitor.h> | ||
40 | 41 | | |||
Show All 31 Lines | 70 | connect(ui->unifyButton, &QPushButton::released, | |||
72 | }); | 73 | }); | ||
73 | 74 | | |||
74 | connect(ui->scaleAllOutputsButton, &QPushButton::released, | 75 | connect(ui->scaleAllOutputsButton, &QPushButton::released, | ||
75 | [this] { | 76 | [this] { | ||
76 | QPointer<ScalingConfig> dialog = new ScalingConfig(mConfig->outputs(), this); | 77 | QPointer<ScalingConfig> dialog = new ScalingConfig(mConfig->outputs(), this); | ||
77 | dialog->exec(); | 78 | dialog->exec(); | ||
78 | delete dialog; | 79 | delete dialog; | ||
79 | }); | 80 | }); | ||
81 | connect(this, &Widget::saveControls, mControlPanel, &ControlPanel::save); | ||||
80 | 82 | | |||
81 | mOutputTimer = new QTimer(this); | 83 | mOutputTimer = new QTimer(this); | ||
82 | connect(mOutputTimer, &QTimer::timeout, | 84 | connect(mOutputTimer, &QTimer::timeout, | ||
83 | this, &Widget::clearOutputIdentifiers); | 85 | this, &Widget::clearOutputIdentifiers); | ||
84 | 86 | | |||
85 | loadQml(); | 87 | loadQml(); | ||
86 | } | 88 | } | ||
87 | 89 | | |||
▲ Show 20 Lines • Show All 398 Lines • Show Last 20 Lines |