mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-21 20:39:00 +00:00
Adding profiles menu.
This commit is contained in:
parent
82df40591b
commit
d2b677a0e2
@ -131,6 +131,22 @@ ApplicationWindow{
|
|||||||
MenuItem {action: zoomIn}
|
MenuItem {action: zoomIn}
|
||||||
MenuItem {action: zoomOut}
|
MenuItem {action: zoomOut}
|
||||||
}
|
}
|
||||||
|
Menu{
|
||||||
|
id: profilesMenu
|
||||||
|
title: qsTr("Profiles")
|
||||||
|
Instantiator{
|
||||||
|
model: shadersettings.profiles_list
|
||||||
|
delegate: MenuItem {
|
||||||
|
text: model.text
|
||||||
|
onTriggered: {
|
||||||
|
shadersettings.loadProfileString(obj_string);
|
||||||
|
shadersettings.handleFontChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onObjectAdded: profilesMenu.insertItem(index, object)
|
||||||
|
onObjectRemoved: profilesMenu.removeItem(object)
|
||||||
|
}
|
||||||
|
}
|
||||||
Menu{
|
Menu{
|
||||||
title: qsTr("Help")
|
title: qsTr("Help")
|
||||||
visible: shadersettings.showMenubar
|
visible: shadersettings.showMenubar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user