Skip to content

Commit 725114c

Browse files
author
timlinux
committed
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
1 parent f74390c commit 725114c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/plugins/grass/qgsgrassplugin.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,29 +190,29 @@ void QgsGrassPlugin::initGui()
190190
qGisInterface->addPluginMenu(tr("&GRASS"), mCloseMapsetAction);
191191
qGisInterface->addPluginMenu(tr("&GRASS"), mAddVectorAction);
192192
qGisInterface->addPluginMenu(tr("&GRASS"), mAddRasterAction);
193+
qGisInterface->addPluginMenu(tr("&GRASS"), mNewVectorAction);
194+
qGisInterface->addPluginMenu(tr("&GRASS"), mEditAction);
193195
qGisInterface->addPluginMenu(tr("&GRASS"), mOpenToolsAction);
194196
qGisInterface->addPluginMenu(tr("&GRASS"), mRegionAction);
195197
qGisInterface->addPluginMenu(tr("&GRASS"), mEditRegionAction);
196-
qGisInterface->addPluginMenu(tr("&GRASS"), mEditAction);
197-
qGisInterface->addPluginMenu(tr("&GRASS"), mNewVectorAction);
198198

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

204204
// Add to the toolbar
205+
mOpenMapsetAction->addTo(toolBarPointer);
206+
mNewMapsetAction->addTo(toolBarPointer);
207+
mCloseMapsetAction->addTo(toolBarPointer);
208+
toolBarPointer->addSeparator();
205209
mAddVectorAction->addTo(toolBarPointer);
206210
mAddRasterAction->addTo(toolBarPointer);
211+
mNewVectorAction->addTo(toolBarPointer);
212+
mEditAction->addTo(toolBarPointer);
207213
mOpenToolsAction->addTo(toolBarPointer);
208214
mRegionAction->addTo(toolBarPointer);
209215
mEditRegionAction->addTo(toolBarPointer);
210-
mEditAction->addTo(toolBarPointer);
211-
toolBarPointer->addSeparator();
212-
mOpenMapsetAction->addTo(toolBarPointer);
213-
mNewMapsetAction->addTo(toolBarPointer);
214-
mNewVectorAction->addTo(toolBarPointer);
215-
mCloseMapsetAction->addTo(toolBarPointer);
216216

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

0 commit comments

Comments
 (0)