mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-31 07:04:20 +00:00 
			
		
		
		
	Adding profiles menu.
This commit is contained in:
		| @@ -131,6 +131,22 @@ ApplicationWindow{ | ||||
|             MenuItem {action: zoomIn} | ||||
|             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{ | ||||
|             title: qsTr("Help") | ||||
|             visible: shadersettings.showMenubar | ||||
|   | ||||
		Reference in New Issue
	
	Block a user