Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmacomponents3/RadioButton.qml
Show All 21 Lines | |||||
22 | import QtQuick.Controls @QQC2_VERSION@ | 22 | import QtQuick.Controls @QQC2_VERSION@ | ||
23 | import org.kde.plasma.core 2.0 as PlasmaCore | 23 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
24 | 24 | | |||
25 | T.RadioButton { | 25 | T.RadioButton { | ||
26 | id: control | 26 | id: control | ||
27 | 27 | | |||
28 | implicitWidth: Math.max(background ? background.implicitWidth : 0, | 28 | implicitWidth: Math.max(background ? background.implicitWidth : 0, | ||
29 | contentItem.implicitWidth + leftPadding + rightPadding) | 29 | contentItem.implicitWidth + leftPadding + rightPadding) | ||
30 | implicitHeight: units.gridUnit * 1.6 | 30 | implicitHeight: Math.max(background ? background.implicitHeight : 0, | ||
31 | Math.max(contentItem.implicitHeight, | ||||
32 | indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) | ||||
31 | baselineOffset: contentItem.y + contentItem.baselineOffset | 33 | baselineOffset: contentItem.y + contentItem.baselineOffset | ||
32 | 34 | | |||
33 | padding: 1 | 35 | padding: 1 | ||
34 | spacing: Math.round(units.gridUnit / 8) | 36 | spacing: Math.round(units.gridUnit / 8) | ||
35 | 37 | | |||
36 | hoverEnabled: true | 38 | hoverEnabled: true | ||
37 | 39 | | |||
38 | indicator: RadioIndicator { | 40 | indicator: RadioIndicator { | ||
Show All 22 Lines |