mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-26 06:14:45 +00:00
widgets/krunner: Disable for now
This commit is contained in:
parent
ebb49d89a3
commit
3bd81a68dd
1 changed files with 103 additions and 103 deletions
|
|
@ -17,7 +17,7 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||||
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
|
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
|
||||||
import org.kde.plasma.private.mobileshell.state 1.0 as MobileShellState
|
import org.kde.plasma.private.mobileshell.state 1.0 as MobileShellState
|
||||||
|
|
||||||
import org.kde.milou 0.1 as Milou
|
// import org.kde.milou 0.1 as Milou
|
||||||
import org.kde.kirigami 2.19 as Kirigami
|
import org.kde.kirigami 2.19 as Kirigami
|
||||||
|
|
||||||
import "../../components" as Components
|
import "../../components" as Components
|
||||||
|
|
@ -186,108 +186,108 @@ Item {
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
Milou.ResultsListView {
|
// Milou.ResultsListView {
|
||||||
id: listView
|
// id: listView
|
||||||
queryString: queryField.text
|
// queryString: queryField.text
|
||||||
highlight: null
|
// highlight: null
|
||||||
clip: true
|
// clip: true
|
||||||
PlasmaCore.ColorScope.colorGroup: PlasmaCore.Theme.NormalColorGroup
|
// PlasmaCore.ColorScope.colorGroup: PlasmaCore.Theme.NormalColorGroup
|
||||||
|
//
|
||||||
onActivated: queryField.text = "";
|
// onActivated: queryField.text = "";
|
||||||
onUpdateQueryString: {
|
// onUpdateQueryString: {
|
||||||
queryField.text = text
|
// queryField.text = text
|
||||||
queryField.cursorPosition = cursorPosition
|
// queryField.cursorPosition = cursorPosition
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
delegate: MouseArea {
|
// delegate: MouseArea {
|
||||||
id: delegate
|
// id: delegate
|
||||||
height: rowLayout.height
|
// height: rowLayout.height
|
||||||
width: listView.width
|
// width: listView.width
|
||||||
|
//
|
||||||
onClicked: {
|
// onClicked: {
|
||||||
listView.currentIndex = model.index;
|
// listView.currentIndex = model.index;
|
||||||
listView.runCurrentIndex();
|
// listView.runCurrentIndex();
|
||||||
}
|
// }
|
||||||
hoverEnabled: true
|
// hoverEnabled: true
|
||||||
|
//
|
||||||
Rectangle {
|
// Rectangle {
|
||||||
anchors.fill: parent
|
// anchors.fill: parent
|
||||||
color: delegate.pressed ? Qt.rgba(255, 255, 255, 0.2) : (delegate.containsMouse ? Qt.rgba(255, 255, 255, 0.05) : "transparent")
|
// color: delegate.pressed ? Qt.rgba(255, 255, 255, 0.2) : (delegate.containsMouse ? Qt.rgba(255, 255, 255, 0.05) : "transparent")
|
||||||
Behavior on color {
|
// Behavior on color {
|
||||||
ColorAnimation { duration: PlasmaCore.Units.shortDuration }
|
// ColorAnimation { duration: PlasmaCore.Units.shortDuration }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
RowLayout {
|
// RowLayout {
|
||||||
id: rowLayout
|
// id: rowLayout
|
||||||
height: PlasmaCore.Units.gridUnit * 3
|
// height: PlasmaCore.Units.gridUnit * 3
|
||||||
anchors.top: parent.top
|
// anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
// anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
// anchors.right: parent.right
|
||||||
anchors.leftMargin: PlasmaCore.Units.largeSpacing
|
// anchors.leftMargin: PlasmaCore.Units.largeSpacing
|
||||||
anchors.rightMargin: PlasmaCore.Units.largeSpacing
|
// anchors.rightMargin: PlasmaCore.Units.largeSpacing
|
||||||
|
//
|
||||||
Kirigami.Icon {
|
// Kirigami.Icon {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
// Layout.alignment: Qt.AlignVCenter
|
||||||
source: model.decoration
|
// source: model.decoration
|
||||||
implicitWidth: PlasmaCore.Units.iconSizes.medium
|
// implicitWidth: PlasmaCore.Units.iconSizes.medium
|
||||||
implicitHeight: PlasmaCore.Units.iconSizes.medium
|
// implicitHeight: PlasmaCore.Units.iconSizes.medium
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
ColumnLayout {
|
// ColumnLayout {
|
||||||
Layout.fillWidth: true
|
// Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignVCenter
|
// Layout.alignment: Qt.AlignVCenter
|
||||||
spacing: PlasmaCore.Units.smallSpacing
|
// spacing: PlasmaCore.Units.smallSpacing
|
||||||
|
//
|
||||||
PlasmaComponents.Label {
|
// PlasmaComponents.Label {
|
||||||
id: title
|
// id: title
|
||||||
Layout.fillWidth: true
|
// Layout.fillWidth: true
|
||||||
Layout.leftMargin: PlasmaCore.Units.smallSpacing * 2
|
// Layout.leftMargin: PlasmaCore.Units.smallSpacing * 2
|
||||||
Layout.rightMargin: PlasmaCore.Units.largeSpacing
|
// Layout.rightMargin: PlasmaCore.Units.largeSpacing
|
||||||
|
//
|
||||||
maximumLineCount: 1
|
// maximumLineCount: 1
|
||||||
elide: Text.ElideRight
|
// elide: Text.ElideRight
|
||||||
text: typeof modelData !== "undefined" ? modelData : model.display
|
// text: typeof modelData !== "undefined" ? modelData : model.display
|
||||||
color: "white"
|
// color: "white"
|
||||||
|
//
|
||||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize
|
// font.pointSize: PlasmaCore.Theme.defaultFont.pointSize
|
||||||
}
|
// }
|
||||||
PlasmaComponents.Label {
|
// PlasmaComponents.Label {
|
||||||
id: subtitle
|
// id: subtitle
|
||||||
Layout.fillWidth: true
|
// Layout.fillWidth: true
|
||||||
Layout.leftMargin: PlasmaCore.Units.smallSpacing * 2
|
// Layout.leftMargin: PlasmaCore.Units.smallSpacing * 2
|
||||||
Layout.rightMargin: PlasmaCore.Units.largeSpacing
|
// Layout.rightMargin: PlasmaCore.Units.largeSpacing
|
||||||
|
//
|
||||||
maximumLineCount: 1
|
// maximumLineCount: 1
|
||||||
elide: Text.ElideRight
|
// elide: Text.ElideRight
|
||||||
text: model.subtext || ""
|
// text: model.subtext || ""
|
||||||
color: "white"
|
// color: "white"
|
||||||
opacity: 0.8
|
// opacity: 0.8
|
||||||
|
//
|
||||||
font.pointSize: Math.round(PlasmaCore.Theme.defaultFont.pointSize * 0.8)
|
// font.pointSize: Math.round(PlasmaCore.Theme.defaultFont.pointSize * 0.8)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
Repeater {
|
// Repeater {
|
||||||
id: actionsRepeater
|
// id: actionsRepeater
|
||||||
model: typeof actions !== "undefined" ? actions : []
|
// model: typeof actions !== "undefined" ? actions : []
|
||||||
|
//
|
||||||
Controls.ToolButton {
|
// Controls.ToolButton {
|
||||||
icon: modelData.icon || ""
|
// icon: modelData.icon || ""
|
||||||
visible: modelData.visible || true
|
// visible: modelData.visible || true
|
||||||
enabled: modelData.enabled || true
|
// enabled: modelData.enabled || true
|
||||||
|
//
|
||||||
Accessible.role: Accessible.Button
|
// Accessible.role: Accessible.Button
|
||||||
Accessible.name: modelData.text
|
// Accessible.name: modelData.text
|
||||||
checkable: checked
|
// checkable: checked
|
||||||
checked: delegate.activeAction === index
|
// checked: delegate.activeAction === index
|
||||||
focus: delegate.activeAction === index
|
// focus: delegate.activeAction === index
|
||||||
onClicked: delegate.ListView.view.runAction(index)
|
// onClicked: delegate.ListView.view.runAction(index)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue