Skip to content

Commit

Permalink
updates to qml menu
Browse files Browse the repository at this point in the history
  • Loading branch information
xerxes2 committed Jul 18, 2011
1 parent 74f6780 commit 18327fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/ui/qml/ContextMenu.qml
Expand Up @@ -40,7 +40,7 @@ Item {
leftMargin: config.font_size * 5
}
color: themeController.foreground
font.pixelSize: parent.height * .3
font.pixelSize: config.font_size * 1.4
text: modelData.text
}
onSelected: {
Expand Down
6 changes: 3 additions & 3 deletions data/ui/qml/SelectableItem.qml
Expand Up @@ -6,7 +6,7 @@ Item {
signal selected(variant item)
signal contextMenu(variant item)

height: config.font_size * 5
height: config.font_size * 4.5
width: parent.width

Rectangle {
Expand All @@ -15,7 +15,7 @@ Item {
color: themeController.highlight
anchors.fill: parent

Behavior on opacity { NumberAnimation { duration: 150 } }
Behavior on opacity { NumberAnimation { duration: 500 } }
}

MouseArea {
Expand All @@ -29,6 +29,6 @@ Item {
selectableItem.contextMenu(modelData)
}
}
onPressAndHold: selectableItem.contextMenu(modelData)
//onPressAndHold: selectableItem.contextMenu(modelData)
}
}

0 comments on commit 18327fc

Please sign in to comment.