Skip to content

Commit

Permalink
Use more logic ordering for toolbar icons and menu entries
Browse files Browse the repository at this point in the history
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 6258389
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/plugins/grass/qgsgrassplugin.cpp
Expand Up @@ -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 *)));
Expand Down

0 comments on commit 6258389

Please sign in to comment.