mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Set the menuRole property on certain menu entry QActions
Telling Qt that the "Preferences" menu entry is QAction::PreferencesRole will make it be moved to the System menu on Mac, for example. Fixes #327 Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									9cb9dba7b6
								
							
						
					
					
						commit
						53f38a2410
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -329,6 +329,9 @@ | ||||||
|    <property name="shortcut"> |    <property name="shortcut"> | ||||||
|     <string>Ctrl+,</string> |     <string>Ctrl+,</string> | ||||||
|    </property> |    </property> | ||||||
|  |    <property name="menuRole"> | ||||||
|  |     <enum>QAction::PreferencesRole</enum> | ||||||
|  |    </property> | ||||||
|   </action> |   </action> | ||||||
|   <action name="actionQuit"> |   <action name="actionQuit"> | ||||||
|    <property name="text"> |    <property name="text"> | ||||||
|  | @ -337,6 +340,9 @@ | ||||||
|    <property name="shortcut"> |    <property name="shortcut"> | ||||||
|     <string>Ctrl+Q</string> |     <string>Ctrl+Q</string> | ||||||
|    </property> |    </property> | ||||||
|  |    <property name="menuRole"> | ||||||
|  |     <enum>QAction::QuitRole</enum> | ||||||
|  |    </property> | ||||||
|   </action> |   </action> | ||||||
|   <action name="actionDownloadDC"> |   <action name="actionDownloadDC"> | ||||||
|    <property name="text"> |    <property name="text"> | ||||||
|  | @ -458,6 +464,9 @@ | ||||||
|    <property name="text"> |    <property name="text"> | ||||||
|     <string>About Subsurface</string> |     <string>About Subsurface</string> | ||||||
|    </property> |    </property> | ||||||
|  |    <property name="menuRole"> | ||||||
|  |     <enum>QAction::AboutRole</enum> | ||||||
|  |    </property> | ||||||
|   </action> |   </action> | ||||||
|   <action name="actionUserManual"> |   <action name="actionUserManual"> | ||||||
|    <property name="text"> |    <property name="text"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue