Commit a32a2d72 authored by Roman Gilg's avatar Roman Gilg
Browse files

refactor(kcm): move rotation buttons in own module

Summary:
Simple refactor to make the code more readable when later on auto rotation
functionality is added.

Test Plan: KCM starts up.

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26028
parent f40df0e6
/********************************************************************
Copyright © 2019 Roman Gilg <subdiff@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
import QtQuick 2.9
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.3 as Controls
import org.kde.kirigami 2.4 as Kirigami
RowLayout {
id: orientation
Kirigami.FormData.label: i18n("Orientation:")
Controls.ButtonGroup {
buttons: orientation.children
}
RotationButton {
value: 0
}
RotationButton {
value: 90
}
RotationButton {
value: 180
}
RotationButton {
value: 270
}
}
......@@ -92,27 +92,7 @@ ColumnLayout {
}
}
Controls.ButtonGroup {
buttons: orientation.children
}
RowLayout {
id: orientation
Kirigami.FormData.label: i18n("Orientation:")
RotationButton {
value: 0
}
RotationButton {
value: 90
}
RotationButton {
value: 180
}
RotationButton {
value: 270
}
}
Orientation {}
Controls.ComboBox {
Kirigami.FormData.label: i18n("Refresh rate:")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment