mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
customisation script moved, removed & from customisation menu items labels
This commit is contained in:
parent
b287661c91
commit
3233d05f92
@ -110,8 +110,6 @@ class UiInspector:
|
||||
xml = ''
|
||||
# debug
|
||||
for p in glob.glob( self.ui_dir ):
|
||||
#for p in ['/home/radim/devel/qgis_trunk/src/ui/qgsabout.ui']:
|
||||
#for p in ['/home/radim/devel/qgis_trunk/src/ui/qgsrasterlayerpropertiesbase.ui']:
|
||||
self.printMsg ( "Loading " + p )
|
||||
# qgsrasterlayerpropertiesbase.ui is giving: No module named qwt_plot
|
||||
try:
|
@ -497,7 +497,8 @@ void QgsCustomization::addTreeItemActions( QTreeWidgetItem* parentItem, const QL
|
||||
void QgsCustomization::addTreeItemMenu( QTreeWidgetItem* parentItem, QMenu* menu )
|
||||
{
|
||||
QStringList menustrs;
|
||||
menustrs << menu->objectName() << menu->title();
|
||||
// remove '&' which are used to mark shortcut key
|
||||
menustrs << menu->objectName() << menu->title().replace( "&", "" );
|
||||
QTreeWidgetItem* menuItem = new QTreeWidgetItem( parentItem, menustrs );
|
||||
menuItem->setFlags( Qt::ItemIsEnabled | Qt::ItemIsUserCheckable | Qt::ItemIsSelectable );
|
||||
menuItem->setCheckState( 0, Qt::Checked );
|
||||
|
Loading…
x
Reference in New Issue
Block a user