mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
add local history suggestion to configuration window
This commit is contained in:
parent
f9ddf690c7
commit
3403d1de50
@ -15,7 +15,7 @@
|
|||||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.3 as QtControls
|
import QtQuick.Controls 1.3 as QtControls
|
||||||
import QtQuick.Dialogs 1.2 as QtDialogs
|
import QtQuick.Dialogs 1.2 as QtDialogs
|
||||||
|
|
||||||
@ -336,7 +336,7 @@ Item {
|
|||||||
onClicked: awFormatter.showDialog(awKeys.dictKeys(true))
|
onClicked: awFormatter.showDialog(awKeys.dictKeys(true))
|
||||||
}
|
}
|
||||||
QtControls.Button {
|
QtControls.Button {
|
||||||
width: parent.width * 2 / 5
|
width: parent.width * 5 / 15
|
||||||
text: i18n("Preview")
|
text: i18n("Preview")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
lock = false
|
lock = false
|
||||||
@ -344,6 +344,22 @@ Item {
|
|||||||
plasmoid.configuration.queueLimit, false)
|
plasmoid.configuration.queueLimit, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
QtControls.Button {
|
||||||
|
width: parent.width / 15
|
||||||
|
iconName: "view-history"
|
||||||
|
menu: QtControls.Menu {
|
||||||
|
id: historyConfig
|
||||||
|
Instantiator {
|
||||||
|
model: awTelemetryHandler.get("awwidgetconfig")
|
||||||
|
QtControls.MenuItem {
|
||||||
|
text: modelData
|
||||||
|
onTriggered: textPattern.text = modelData
|
||||||
|
}
|
||||||
|
onObjectAdded: historyConfig.insertItem(index, object)
|
||||||
|
onObjectRemoved: historyConfig.removeItem(object)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QtControls.TextArea {
|
QtControls.TextArea {
|
||||||
|
Loading…
Reference in New Issue
Block a user