Changeset View
Changeset View
Standalone View
Standalone View
sidebar/package/contents/ui/IntroIcon.qml
Show All 30 Lines | 25 | MouseArea { | |||
---|---|---|---|---|---|
31 | Layout.minimumWidth: Kirigami.Units.iconSizes.medium | 31 | Layout.minimumWidth: Kirigami.Units.iconSizes.medium | ||
32 | Layout.minimumHeight: column.implicitHeight | 32 | Layout.minimumHeight: column.implicitHeight | ||
33 | cursorShape: Qt.PointingHandCursor | 33 | cursorShape: Qt.PointingHandCursor | ||
34 | Layout.fillWidth: true | 34 | Layout.fillWidth: true | ||
35 | Layout.alignment: Qt.AlignTop | 35 | Layout.alignment: Qt.AlignTop | ||
36 | activeFocusOnTab: true | 36 | activeFocusOnTab: true | ||
37 | hoverEnabled: true | 37 | hoverEnabled: true | ||
38 | 38 | | |||
39 | onClicked: systemsettings.loadMostUsed(index); | 39 | onClicked: systemsettings.loadModule(systemsettings.mostUsedModel.index(index, 0)); | ||
40 | onEntered: systemsettings.requestMostUsedToolTip(index, item.mapToItem(root, 0, Kirigami.Units.largeSpacing, width, height)); | 40 | onEntered: systemsettings.requestMostUsedToolTip(index, item.mapToItem(root, 0, Kirigami.Units.largeSpacing, width, height)); | ||
41 | onExited: systemsettings.hideMostUsedToolTip(); | 41 | onExited: systemsettings.hideMostUsedToolTip(); | ||
42 | 42 | | |||
43 | Keys.onTabPressed: { | 43 | Keys.onTabPressed: { | ||
44 | if (index < (mostUsedRepeater.count-1)) { | 44 | if (index < (mostUsedRepeater.count-1)) { | ||
45 | event.accepted = false; | 45 | event.accepted = false; | ||
46 | } else { | 46 | } else { | ||
47 | root.focusNextRequest(); | 47 | root.focusNextRequest(); | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |