Commit 8227e4e2 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Run Command] Add history drop down button

Indicates that there's a "drop down" history similar to a ComboBox.
The fact that you can press the down arrow to bring it up is hardly discoverable.

BUG: 375207
FIXED-IN: 5.13.0

Differential Revision: https://phabricator.kde.org/D10652
parent 745cffc9
......@@ -118,6 +118,35 @@ ColumnLayout {
Keys.onEscapePressed: {
runnerWindow.visible = false
}
PlasmaCore.SvgItem {
anchors {
right: parent.right
rightMargin: 6 // from PlasmaStyle TextFieldStyle
verticalCenter: parent.verticalCenter
}
// match clear button
width: Math.max(parent.height * 0.8, units.iconSizes.small)
height: width
svg: PlasmaCore.Svg {
imagePath: "widgets/arrows"
colorGroup: PlasmaCore.Theme.ButtonColorGroup
}
elementId: "down-arrow"
visible: queryField.length === 0
MouseArea {
anchors.fill: parent
onPressed: {
root.showHistory = !root.showHistory
if (root.showHistory) {
listView.forceActiveFocus(); // is the history list
} else {
queryField.forceActiveFocus();
}
}
}
}
}
PlasmaComponents.ToolButton {
iconSource: "window-close"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment