right: parent.right
bottom: parent.bottom
}
- height: 50
+ height: buttonRow.height * 1.2
color: Qt.darker(palette.window, 1.1)
border.color: Qt.darker(palette.window, 1.3)
Row {
+ id: buttonRow
spacing: 6
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 12
- height: parent.height - 6
+ height: implicitHeight
width: parent.width
Button {
text: "Open"
right: parent.right
bottom: parent.bottom
}
- height: 50
+ height: buttonRow.height * 1.2
color: Qt.darker(palette.window, 1.1)
border.color: Qt.darker(palette.window, 1.3)
Row {
+ id: buttonRow
spacing: 6
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 12
- height: parent.height - 6
+ height: implicitHeight
width: parent.width
Button {
text: "Open"
****************************************************************************/
import QtQuick 2.1
+import QtQuick.Window 2.1
Item {
id: container
signal clicked
property alias containsMouse: mouseArea.containsMouse
property alias pressed: mouseArea.pressed
- implicitHeight: buttonLabel.implicitHeight * 1.2
- implicitWidth: buttonLabel.implicitWidth * 1.2
+ implicitHeight: Math.max(Screen.logicalPixelDensity * 7, buttonLabel.implicitHeight * 1.2)
+ implicitWidth: Math.max(Screen.logicalPixelDensity * 11, buttonLabel.implicitWidth * 1.3)
height: implicitHeight
width: implicitWidth
GradientStop { position: 1.0; color: Qt.darker(palette.button, 1.3) }
}
antialiasing: true
- radius: height / 4
+ radius: height / 6
border.color: Qt.darker(palette.button, 1.5)
border.width: 1
}
****************************************************************************/
import QtQuick 2.0
+import QtQuick.Window 2.1
Item {
id: tabWidget
Repeater {
model: stack.children.length
delegate: Rectangle {
- width: tabWidget.width / stack.children.length; height: 36
+ width: tabWidget.width / stack.children.length
+ height: Math.max(Screen.logicalPixelDensity * 11, label.implicitHeight * 1.2)
Rectangle {
width: parent.width; height: 1
visible: tabWidget.current == index
}
Text {
+ id: label
horizontalAlignment: Qt.AlignHCenter; verticalAlignment: Qt.AlignVCenter
anchors.fill: parent
text: stack.children[index].title
signal clicked
property alias containsMouse: mouseArea.containsMouse
property alias pressed: mouseArea.pressed
- implicitHeight: buttonLabel.implicitHeight * 1.2
- implicitWidth: Math.max(Screen.logicalPixelDensity * 10, buttonLabel.implicitWidth * 1.2)
+ implicitHeight: Math.max(Screen.logicalPixelDensity * 7, buttonLabel.implicitHeight * 1.2)
+ implicitWidth: Math.max(Screen.logicalPixelDensity * 11, buttonLabel.implicitWidth * 1.3)
height: implicitHeight
width: implicitWidth
GradientStop { position: 1.0; color: Qt.darker(palette.button, 1.3) }
}
antialiasing: true
- radius: height / 4
+ radius: height / 6
border.color: Qt.darker(palette.button, 1.5)
border.width: 1
}