Skip to content
Permalink
Browse files
Use more logic ordering for toolbar icons and menu entries
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8106 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Feb 5, 2008
1 parent 11cf17d commit 625838915ab4e1b3f4bf2192f287370a3ea18403
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/plugins/grass/qgsgrassplugin.cpp
@@ -190,29 +190,29 @@ void QgsGrassPlugin::initGui()
qGisInterface->addPluginMenu(tr("&GRASS"), mCloseMapsetAction);
qGisInterface->addPluginMenu(tr("&GRASS"), mAddVectorAction);
qGisInterface->addPluginMenu(tr("&GRASS"), mAddRasterAction);
qGisInterface->addPluginMenu(tr("&GRASS"), mNewVectorAction);
qGisInterface->addPluginMenu(tr("&GRASS"), mEditAction);
qGisInterface->addPluginMenu(tr("&GRASS"), mOpenToolsAction);
qGisInterface->addPluginMenu(tr("&GRASS"), mRegionAction);
qGisInterface->addPluginMenu(tr("&GRASS"), mEditRegionAction);
qGisInterface->addPluginMenu(tr("&GRASS"), mEditAction);
qGisInterface->addPluginMenu(tr("&GRASS"), mNewVectorAction);

// Add the toolbar to the main window
toolBarPointer = qGisInterface->addToolBar(tr("GRASS"));
toolBarPointer->setIconSize(QSize(24,24));
toolBarPointer->setObjectName("GRASS");

// Add to the toolbar
mOpenMapsetAction->addTo(toolBarPointer);
mNewMapsetAction->addTo(toolBarPointer);
mCloseMapsetAction->addTo(toolBarPointer);
toolBarPointer->addSeparator();
mAddVectorAction->addTo(toolBarPointer);
mAddRasterAction->addTo(toolBarPointer);
mNewVectorAction->addTo(toolBarPointer);
mEditAction->addTo(toolBarPointer);
mOpenToolsAction->addTo(toolBarPointer);
mRegionAction->addTo(toolBarPointer);
mEditRegionAction->addTo(toolBarPointer);
mEditAction->addTo(toolBarPointer);
toolBarPointer->addSeparator();
mOpenMapsetAction->addTo(toolBarPointer);
mNewMapsetAction->addTo(toolBarPointer);
mNewVectorAction->addTo(toolBarPointer);
mCloseMapsetAction->addTo(toolBarPointer);

// Connect display region
connect( mCanvas, SIGNAL(renderComplete(QPainter *)), this, SLOT(postRender(QPainter *)));

0 comments on commit 6258389

Please sign in to comment.