Commit 7fd8ef19 authored by Martin Klapetek's avatar Martin Klapetek

[dialer] Put the sub-label under the number label

parent 86cafaf7
......@@ -56,6 +56,9 @@ Item {
}
Dialpad {
Layout.fillWidth: true
Layout.fillHeight: true
callback: function (string) {
addNumber(string);
}
......
......@@ -110,17 +110,15 @@ PlasmaComponents.Label {
PlasmaComponents.Label {
id: longHold
anchors {
verticalCenter: parent.verticalCenter
right: parent.right
rightMargin: units.smallSpacing
bottom: parent.bottom
}
height: parent.height * 0.4
width: parent.width / 3
verticalAlignment: Qt.AlignVCenter
horizontalAlignment: Qt.AlignHCenter
width: parent.width
verticalAlignment: Text.AlignBottom
horizontalAlignment: Text.AlignHCenter
visible: text.length > 0
opacity: 0.6
opacity: 0.4
fontSizeMode: Text.Fit
fontSizeMode: Text.VerticalFit
}
}
......@@ -33,9 +33,6 @@ GridLayout {
property int buttonHeight: parent.height / 6
Layout.fillWidth: true
Layout.fillHeight: true
DialerButton { id: one; text: "1" }
DialerButton { text: "2"; sub: "ABC" }
DialerButton { text: "3"; sub: "DEF" }
......@@ -55,8 +52,8 @@ GridLayout {
DialerIconButton {
id: callButton
Layout.fillWidth: true
Layout.fillHeight: true
Layout.minimumHeight: buttonHeight
Layout.maximumHeight: buttonHeight
Layout.minimumHeight: Layout.maximumHeight
enabled: status.text.length > 0
opacity: enabled ? 1 : 0.5
......@@ -67,12 +64,11 @@ GridLayout {
}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
DialerIconButton {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.minimumHeight: buttonHeight
Layout.maximumHeight: buttonHeight
Layout.minimumHeight: Layout.maximumHeight
enabled: status.text.length > 0
opacity: enabled ? 1 : 0.5
......
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