Skip to content

Commit

Permalink
customisation script moved, removed & from customisation menu items l…
Browse files Browse the repository at this point in the history
…abels
  • Loading branch information
blazek committed Jun 12, 2013
1 parent b287661 commit 3233d05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions python/widgets_tree.py → scripts/widgets_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion src/app/qgscustomization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 3233d05

Please sign in to comment.