Skip to content
Permalink
Browse files

customisation script moved, removed & from customisation menu items l…

…abels
  • Loading branch information
blazek committed Jun 12, 2013
1 parent b287661 commit 3233d05f927bf8bfd9346b1cc0282544c10c2c92
Showing with 2 additions and 3 deletions.
  1. +0 −2 {python → scripts}/widgets_tree.py
  2. +2 −1 src/app/qgscustomization.cpp
@@ -110,8 +110,6 @@ def treeXml(self, element ):
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 );

0 comments on commit 3233d05

Please sign in to comment.
You can’t perform that action at this time.