mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-31 23:22:17 +00:00 
			
		
		
		
	Adding profiles menu.
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user