plasma-framework/tests/components/radiobutton3.qml
George Vogiatzis dccf6c4dd6 [Tests]Make radiobutton3.qml use PC3
Summary: Correct test radiobutton3.qml to use Plasma Components 3 instead of 2.

Test Plan:
Run `qmlscene radiobutton3.qml`
Before:
Misaligned button and big height. (bug in PC2 radiobutton)
After:
Correct height and alignment between button and button's text.

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: ngraham, davidedmundson, ndavis, kde-frameworks-devel

Tags: #frameworks, #plasma

Differential Revision: https://phabricator.kde.org/D27082
2020-02-04 11:14:14 -07:00

55 lines
1.2 KiB
QML

import QtQuick 2.0
import org.kde.plasma.components 3.0 as PlasmaComponents
import QtQuick.Layouts 1.2
ComponentBase {
Grid {
anchors.fill: parent
anchors.margins: 20
spacing: 4
columns: 2
PlasmaComponents.Label {
text: "text"
}
PlasmaComponents.RadioButton {
text: "Some awesome radiobutton"
}
PlasmaComponents.Label {
text: "focus"
}
PlasmaComponents.RadioButton {
text: "Some awesome radiobutton"
focus: true
}
PlasmaComponents.Label {
text: "checked"
}
PlasmaComponents.RadioButton {
text: "Some awesome radiobutton"
checked: true
}
PlasmaComponents.Label {
text: "disabled"
}
PlasmaComponents.RadioButton {
text: "Some awesome radiobutton"
enabled: false
}
PlasmaComponents.Label {
text: "disabled and checked"
}
PlasmaComponents.RadioButton {
text: "Some awesome radiobutton"
enabled: false
checked: true
}
}
}