Skip to content

Commit

Permalink
Changes... everywhere. New installed view, optimizations all around, …
Browse files Browse the repository at this point in the history
…logging verbosity setting, and a host of other stuff
  • Loading branch information
bzar committed Apr 9, 2012
1 parent f9a5b4d commit 2ea865a
Show file tree
Hide file tree
Showing 14 changed files with 468 additions and 389 deletions.
2 changes: 1 addition & 1 deletion deps/qtpndman/src
13 changes: 4 additions & 9 deletions interfaces/PNDManager/Button.qml
Expand Up @@ -6,7 +6,6 @@ Item {
property alias label: labelText.text
property alias sublabel: sublabelText.text
property alias pressed: mouseArea.pressed
property alias hovered: mouseArea.hover
property alias font: labelText.font
property alias textColor: labelText.color
property alias enabled: mouseArea.enabled
Expand All @@ -24,9 +23,9 @@ Item {
smooth: radius != 0

gradient: Gradient {
GradientStop { position: 0.0; color: Qt.darker(button.color, pressed ? 1.6 : hovered ? 0.8 : 1.0 ) }
GradientStop { position: pressed ? 0.2 : 0.8; color: Qt.darker(button.color, pressed ? 1.4 : hovered ? 1.0 : 1.2) }
GradientStop { position: 1.0; color: Qt.darker(button.color, pressed ? 1.2 : hovered ? 1.6 : 1.4) }
GradientStop { position: 0.0; color: Qt.darker(button.color, pressed ? 1.6 : 1.0 ) }
GradientStop { position: pressed ? 0.2 : 0.8; color: Qt.darker(button.color, pressed ? 1.4 : 1.2) }
GradientStop { position: 1.0; color: Qt.darker(button.color, pressed ? 1.2 : 1.4) }
}

clip: true
Expand All @@ -35,7 +34,7 @@ Item {
id: guiHint
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: 8
anchors.margins: Math.min(8, (parent.height - height) / 2)
}
Column {
anchors.centerIn: parent
Expand All @@ -61,12 +60,8 @@ Item {

MouseArea {
id: mouseArea
property bool hover: false
anchors.fill: parent
hoverEnabled: true
onClicked: button.clicked()
onEntered: hover = true
onExited: hover = false
}

Rectangle {
Expand Down
3 changes: 3 additions & 0 deletions interfaces/PNDManager/CategoryView.qml
Expand Up @@ -127,6 +127,9 @@ View {
anchors.margins: 4
font.pixelSize: 14
activeFocusOnPress: false
cursorVisible: true
Keys.onRightPressed: event.accepted = true
Keys.onLeftPressed: event.accepted = true
}
}
}
Expand Down

0 comments on commit 2ea865a

Please sign in to comment.