@ -68,14 +68,13 @@ ColumnLayout {
Layout.alignment: Qt . AlignTop
Layout.alignment: Qt . AlignTop
PlasmaComponents3 . ToolButton {
PlasmaComponents3 . ToolButton {
icon.name: "configure"
icon.name: "configure"
visible: false
onClicked: {
onClicked: {
runnerWindow . visible = false
runnerWindow . visible = false
runnerWindow . displayConfiguration ( )
runnerWindow . displayConfiguration ( )
}
}
Accessible.name: i18n ( "Configure" )
Accessible.name: i18n ( "Configure" )
Accessible.description: i18n ( "Configure KRunner Behavior" )
Accessible.description: i18n ( "Configure KRunner Behavior" )
visible: KCMShell . authorize ( "kcm_krunnersettings.desktop" ) . length > 0
PlasmaComponents3 . ToolTip {
PlasmaComponents3 . ToolTip {
text: i18n ( "Configure KRunner…" )
text: i18n ( "Configure KRunner…" )
}
}
@ -84,8 +83,8 @@ ColumnLayout {
id: queryField
id: queryField
property bool allowCompletion: false
property bool allowCompletion: false
clearButtonShown: false
Layout.minimumWidth: PlasmaCore . Units . gridUnit * 25
Layout.minimumWidth: 818
Layout.maximumWidth: PlasmaCore . Units . gridUnit * 25
activeFocusOnPress: true
activeFocusOnPress: true
placeholderText: results . runnerName ? i18nc ( "Textfield placeholder text, query specific KRunner plugin" ,
placeholderText: results . runnerName ? i18nc ( "Textfield placeholder text, query specific KRunner plugin" ,
@ -220,7 +219,7 @@ ColumnLayout {
}
}
}
}
PlasmaComponents3 . ToolButton {
PlasmaComponents3 . ToolButton {
visible: false
visible: runnerWindow . helpEnabled
checkable: true
checkable: true
checked: root . query . startsWith ( "?" )
checked: root . query . startsWith ( "?" )
/ / R e s e t i f o u t q u e r s s t a r t s w i t h " ? " , o t h e r w i s e s e t i t t o " ? "
/ / R e s e t i f o u t q u e r s s t a r t s w i t h " ? " , o t h e r w i s e s e t i t t o " ? "
@ -331,9 +330,9 @@ ColumnLayout {
currentIndex = 0 ;
currentIndex = 0 ;
}
}
}
}
Keys.onReturnPressed: runCurrentIndex ( )
Keys.onReturnPressed: runCurrentIndex ( event )
Keys.onEnterPressed: runCurrentIndex ( )
Keys.onEnterPressed: runCurrentIndex ( event )
Keys.onTabPressed: {
Keys.onTabPressed: {
if ( currentIndex == listView . count - 1 ) {
if ( currentIndex == listView . count - 1 ) {
listView . nextItemInFocusChain ( true ) . forceActiveFocus ( ) ;
listView . nextItemInFocusChain ( true ) . forceActiveFocus ( ) ;
@ -368,7 +367,7 @@ ColumnLayout {
queryField . focus = true ;
queryField . focus = true ;
}
}
}
}
Keys.onUpPressed: decrementCurrentIndex ( )
Keys.onUpPressed: decrementCurrentIndex ( )
Keys.onDownPressed: incrementCurrentIndex ( )
Keys.onDownPressed: incrementCurrentIndex ( )