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@8106 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Feb 5, 2008
1 parent f74390c commit 725114c2fb86bbe23d90680a68aa2708f6d009a7
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 725114c

Please sign in to comment.