Add provisional layer

wilder-portage-prov
Jacopo De Simoi 5 years ago
parent b2a92d9daf
commit 81fa9c9973
  1. 14
      lookandfeel/contents/runcommand/RunCommand.qml

@ -224,11 +224,20 @@ ColumnLayout {
}
PlasmaExtras.ScrollArea {
Layout.alignment: Qt.AlignTop
visible: !(historyScrollArea.visible || resultsScrollArea.visible)
enabled: false
Layout.fillWidth: true
Layout.preferredHeight: Screen.height/2; //Math.min(Screen.height, results.contentHeight)
}
PlasmaExtras.ScrollArea {
id: historyScrollArea
Layout.alignment: Qt.AlignTop
visible: results.count > 0
enabled: visible
Layout.fillWidth: true
Layout.preferredHeight: Math.min(Screen.height, results.contentHeight)
Layout.preferredHeight: Screen.height/2; //Math.min(Screen.height, results.contentHeight)
Milou.ResultsView {
id: results
@ -263,12 +272,13 @@ ColumnLayout {
}
PlasmaExtras.ScrollArea {
id: resultsScrollArea
Layout.alignment: Qt.AlignTop
Layout.fillWidth: true
visible: root.query.length === 0 && listView.count > 0
// don't accept keyboard input when not visible so the keys propagate to the other list
enabled: visible
Layout.preferredHeight: Math.min(Screen.height, listView.contentHeight)
Layout.preferredHeight: Screen.height/2;//Math.min(Screen.height, listView.contentHeight)
ListView {
id: listView // needs this id so the delegate can access it

Loading…
Cancel
Save