@@ -67,6 +67,13 @@ Rectangle {
67 quickList.focus = true;
67 quickList.focus = true;
73+ acceptedButtons: Qt.AllButtons
74+ onWheel: wheel.accepted = true;
71 id: mainColumn
78 id: mainColumn
@@ -824,24 +831,12 @@ Rectangle {
827− UbuntuShape {
834+ Tooltip {
828 id: tooltipShape
835 id: tooltipShape
829 objectName: "tooltipShape"
836 objectName: "tooltipShape"
838+ visible: tooltipShownState.active
831 rotation: root.rotation
839 rotation: root.rotation
832− aspect: UbuntuShape.Flat
833− color: theme.palette.normal.background
834− opacity: tooltipShownState.active ? 0.95 : 0
835− visible: opacity > 0
837− Behavior on opacity {
838− UbuntuNumberAnimation {
839− duration: UbuntuAnimation.BriskDuration
843− width: tooltipLabel.implicitWidth + units.gu(4)
844− height: tooltipLabel.implicitHeight + units.gu(2)
845 y: itemCenter - (height / 2)
840 y: itemCenter - (height / 2)
847 anchors {
842 anchors {
@@ -850,29 +845,9 @@ Rectangle {
850 margins: units.gu(1)
845 margins: units.gu(1)
856− rightMargin: -units.dp(4)
857− verticalCenter: parent.verticalCenter
861− source: "graphics/quicklist_tooltip.png"
867− anchors.centerIn: parent
868− verticalAlignment: Label.AlignVCenter
869− color: theme.palette.normal.backgroundText
870− anchors.margins: units.gu(10)
872− Binding on text {
848+ Binding on text {
873− when: !!tooltipShape.hoveredItem
849+ when: !!tooltipShape.hoveredItem
874− value: !!tooltipShape.hoveredItem ? tooltipShape.hoveredItem.name : ""
850+ value: !!tooltipShape.hoveredItem ? tooltipShape.hoveredItem.name : ""
878 property var hoveredItem: dndArea.containsMouse ? launcherListView.itemAt(dndArea.mouseX, dndArea.mouseY + launcherListView.realContentY) : null
853 property var hoveredItem: dndArea.containsMouse ? launcherListView.itemAt(dndArea.mouseX, dndArea.mouseY + launcherListView.realContentY) : null
@@ -882,69 +857,69 @@ Rectangle {
882 when: !!tooltipShape.hoveredItem
857 when: !!tooltipShape.hoveredItem
883 value: !!tooltipShape.hoveredItem ? root.mapFromItem(tooltipShape.hoveredItem, 0, 0).y + (tooltipShape.hoveredItem.height / 2) + tooltipShape.hoveredItem.offset : 0
858 value: !!tooltipShape.hoveredItem ? root.mapFromItem(tooltipShape.hoveredItem, 0, 0).y + (tooltipShape.hoveredItem.height / 2) + tooltipShape.hoveredItem.offset : 0
886− DSM.StateMachine {
862+ DSM.StateMachine {
887− id: tooltipStateMachine
863+ id: tooltipStateMachine
888− initialState: tooltipHiddenState
864+ initialState: tooltipHiddenState
889− running: true
865+ running: true
891− DSM.State {
867+ DSM.State {
892− id: tooltipHiddenState
868+ id: tooltipHiddenState
894− DSM.SignalTransition {
870+ DSM.SignalTransition {
895− targetState: tooltipShownState
871+ targetState: tooltipShownState
896− signal: tooltipShape.hoveredItemChanged
872+ signal: tooltipShape.hoveredItemChanged
897− // !dndArea.pressed allows us to filter out touch input events
873+ // !dndArea.pressed allows us to filter out touch input events
898− guard: tooltipShape.hoveredItem != null && !dndArea.pressed && !root.moving
874+ guard: tooltipShape.hoveredItem != null && !dndArea.pressed && !root.moving
902− DSM.State {
878+ DSM.State {
903− id: tooltipShownState
879+ id: tooltipShownState
905− DSM.SignalTransition {
881+ DSM.SignalTransition {
906− targetState: tooltipHiddenState
882+ targetState: tooltipHiddenState
907− signal: tooltipShape.hoveredItemChanged
883+ signal: tooltipShape.hoveredItemChanged
908− guard: tooltipShape.hoveredItem == null
884+ guard: tooltipShape.hoveredItem == null
911− DSM.SignalTransition {
887+ DSM.SignalTransition {
912− targetState: tooltipHiddenState
888+ targetState: tooltipHiddenState
913− signal: dndArea.exited
889+ signal: dndArea.exited
916− DSM.SignalTransition {
892+ DSM.SignalTransition {
917− targetState: tooltipDismissedState
893+ targetState: tooltipDismissedState
918− signal: dndArea.onPressed
894+ signal: dndArea.onPressed
921− DSM.SignalTransition {
897+ DSM.SignalTransition {
922− targetState: tooltipDismissedState
898+ targetState: tooltipDismissedState
923− signal: quickList.stateChanged
899+ signal: quickList.stateChanged
924− guard: quickList.state === "open"
900+ guard: quickList.state === "open"
927− DSM.SignalTransition {
903+ DSM.SignalTransition {
928− targetState: tooltipDismissedState
904+ targetState: tooltipDismissedState
929− signal: root.movingChanged
905+ signal: root.movingChanged
930− guard: root.moving
906+ guard: root.moving
934− DSM.State {
910+ DSM.State {
935− id: tooltipDismissedState
911+ id: tooltipDismissedState
937− DSM.SignalTransition {
913+ DSM.SignalTransition {
938− targetState: tooltipHiddenState
914+ targetState: tooltipHiddenState
939− signal: dndArea.positionChanged
915+ signal: dndArea.positionChanged
940− guard: quickList.state != "open" && !dndArea.pressed && !dndArea.moving
916+ guard: quickList.state != "open" && !dndArea.pressed && !dndArea.moving
943− DSM.SignalTransition {
919+ DSM.SignalTransition {
944− targetState: tooltipHiddenState
920+ targetState: tooltipHiddenState
945− signal: dndArea.exited
921+ signal: dndArea.exited
946− guard: quickList.state != "open"
922+ guard: quickList.state != "open"