Add menu roles to the Menu items

Solves the problem with missing menu items as described here:

  https://github.com/sqlitebrowser/sqlitebrowser/pull/730#issuecomment-239823489
This commit is contained in:
Justin Clift
2016-08-15 18:02:47 +01:00
parent 57672f6d83
commit c221536d4e

View File

@@ -1348,6 +1348,9 @@
<property name="shortcut">
<string>Ctrl+N</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="fileOpenAction">
<property name="icon">
@@ -1369,6 +1372,9 @@
<property name="shortcut">
<string>Ctrl+O</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="fileCloseAction">
<property name="enabled">
@@ -1380,6 +1386,9 @@
<property name="shortcut">
<string>Ctrl+W</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="fileRevertAction">
<property name="enabled">
@@ -1398,6 +1407,9 @@
<property name="whatsThis">
<string>This option is used to revert the current database file to its last saved state. All changes made since the last save operation are lost.</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="fileSaveAction">
<property name="enabled">
@@ -1419,6 +1431,9 @@
<property name="shortcut">
<string>Ctrl+S</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="fileCompactAction">
<property name="enabled">
@@ -1436,6 +1451,9 @@
<property name="whatsThis">
<string>Compact the database file, removing space wasted by deleted records.</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="fileExitAction">
<property name="text">
@@ -1458,6 +1476,9 @@
<property name="whatsThis">
<string>This option lets you import data from an .sql dump text file into a new or existing database. SQL dump files can be created on most database engines, including MySQL and PostgreSQL.</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="fileImportCSVAction">
<property name="text">
@@ -1469,6 +1490,9 @@
<property name="whatsThis">
<string>Open a wizard that lets you import data from a comma separated text file into a database table. CSV files can be created on most database and spreadsheet applications.</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="fileExportSQLAction">
<property name="text">
@@ -1480,6 +1504,9 @@
<property name="whatsThis">
<string>This option lets you export a database to a .sql dump text file. SQL dump files contain all data necessary to recreate the database on most database engines, including MySQL and PostgreSQL.</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="fileExportCSVAction">
<property name="text">
@@ -1491,6 +1518,9 @@
<property name="whatsThis">
<string>Export a database table as a comma separated text file, ready to be imported into other database or spreadsheet applications.</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="editCreateTableAction">
<property name="enabled">
@@ -1506,6 +1536,9 @@
<property name="whatsThis">
<string>Open the Create Table wizard, where it is possible to define the name and fields for a new table in the database</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="editDeleteObjectAction">
<property name="enabled">
@@ -1524,6 +1557,9 @@
<property name="whatsThis">
<string>Open the Delete Table wizard, where you can select a database table to be dropped.</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="editModifyTableAction">
<property name="enabled">
@@ -1539,6 +1575,9 @@
<property name="whatsThis">
<string>Open the Modify Table wizard, where it is possible to rename an existing table. It is also possible to add or delete fields form a table, as well as modify field names and types.</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="editCreateIndexAction">
<property name="enabled">
@@ -1554,6 +1593,9 @@
<property name="whatsThis">
<string>Open the Create Index wizard, where it is possible to define a new index on an existing database table.</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="viewPreferencesAction">
<property name="icon">
@@ -1590,6 +1632,9 @@
<property name="shortcut">
<string>Ctrl+T</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="helpWhatsThisAction">
<property name="icon">
@@ -1602,6 +1647,9 @@
<property name="shortcut">
<string>Shift+F1</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="helpAboutAction">
<property name="text">
@@ -1672,6 +1720,9 @@
<property name="text">
<string>&amp;Load extension</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="actionSqlExecuteLine">
<property name="icon">
@@ -1707,6 +1758,9 @@
<property name="text">
<string>&amp;Wiki...</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="actionBug_report">
<property name="icon">
@@ -1716,6 +1770,9 @@
<property name="text">
<string>Bug &amp;report...</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="actionWebsite">
<property name="icon">
@@ -1725,6 +1782,9 @@
<property name="text">
<string>Web&amp;site...</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="actionSaveProject">
<property name="icon">
@@ -1740,6 +1800,9 @@
<property name="statusTip">
<string>Save the current session to a file</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="actionOpenProject">
<property name="icon">
@@ -1755,6 +1818,9 @@
<property name="statusTip">
<string>Load a working session from a file</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="fileAttachAction">
<property name="enabled">
@@ -1763,6 +1829,9 @@
<property name="text">
<string>&amp;Attach Database</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="actionEncryption">
<property name="icon">
@@ -1772,6 +1841,9 @@
<property name="text">
<string>&amp;Set Encryption</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="actionSqlSaveFileAs">
<property name="icon">