Skip to content

Commit 3ca112f

Browse files
author
telwertowski
committed
Update Mac menu code to match r9731. Also move remaining tool tip definitions from cpp to ui file so that all tool tips are defined in the same file and in the same place as the corresponding actions.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9735 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5c75e96 commit 3ca112f

File tree

2 files changed

+32
-28
lines changed

2 files changed

+32
-28
lines changed

src/app/composer/qgscomposer.cpp

+7-24
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,6 @@ QgsComposer::QgsComposer( QgisApp *qgis ): QMainWindow()
7070

7171
QString myIconPath = QgsApplication::activeThemePath();
7272

73-
// Actions defined in qgscomposerbase.ui:
74-
// mActionAddNewMap
75-
// mActionAddNewLegend
76-
// mActionAddNewLabel
77-
// mActionAddNewScalebar
78-
// mActionAddImage
79-
// mActionSelectMoveItem
80-
81-
mActionMoveItemContent->setToolTip( tr( "Move item content" ) );
82-
mActionGroupItems->setToolTip( tr( "Group items" ) );
83-
mActionUngroupItems->setToolTip( tr( "Ungroup items" ) );
84-
mActionRaiseItems->setToolTip( tr( "Raise selected items" ) );
85-
mActionLowerItems->setToolTip( tr( "Lower selected items" ) );
86-
mActionMoveItemsToTop->setToolTip( tr( "Move selected items to top" ) );
87-
mActionMoveItemsToBottom->setToolTip( tr( "Move selected items to bottom" ) );
88-
8973
QActionGroup* toggleActionGroup = new QActionGroup( this );
9074
toggleActionGroup->addAction( mActionMoveItemContent);
9175
toggleActionGroup->addAction( mActionAddNewMap );
@@ -96,7 +80,6 @@ QgsComposer::QgsComposer( QgisApp *qgis ): QMainWindow()
9680
toggleActionGroup->addAction( mActionSelectMoveItem );
9781
toggleActionGroup->setExclusive( true );
9882

99-
10083
setWindowTitle( tr( "QGIS - print composer" ) );
10184

10285
mActionAddNewMap->setCheckable( true );
@@ -146,14 +129,14 @@ QgsComposer::QgsComposer( QgisApp *qgis ): QMainWindow()
146129
layoutMenu->addAction( mActionAddNewLegend );
147130
layoutMenu->addAction( mActionAddImage );
148131
layoutMenu->addAction( mActionSelectMoveItem );
149-
layoutMenu->addAction( moveItemContentAction );
132+
layoutMenu->addAction( mActionMoveItemContent );
150133
layoutMenu->addSeparator();
151-
layoutMenu->addAction( groupItemsAction );
152-
layoutMenu->addAction( ungroupItemsAction );
153-
layoutMenu->addAction( raiseItemsAction );
154-
layoutMenu->addAction( lowerItemsAction );
155-
layoutMenu->addAction( moveItemsToTopAction );
156-
layoutMenu->addAction( moveItemsToBottomAction );
134+
layoutMenu->addAction( mActionGroupItems );
135+
layoutMenu->addAction( mActionUngroupItems );
136+
layoutMenu->addAction( mActionRaiseItems );
137+
layoutMenu->addAction( mActionLowerItems );
138+
layoutMenu->addAction( mActionMoveItemsToTop );
139+
layoutMenu->addAction( mActionMoveItemsToBottom );
157140

158141
#ifndef Q_WS_MAC64 /* assertion failure in NSMenuItem setSubmenu (Qt 4.5.0-snapshot-20080830) */
159142
menuBar()->addMenu( QgisApp::instance()->windowMenu() );

src/ui/qgscomposerbase.ui

+25-4
Original file line numberDiff line numberDiff line change
@@ -376,37 +376,58 @@
376376
</action>
377377
<action name="mActionMoveItemContent" >
378378
<property name="text" >
379-
<string>moveItemContent</string>
379+
<string>Move Content</string>
380+
</property>
381+
<property name="toolTip" >
382+
<string>Move item content</string>
380383
</property>
381384
</action>
382385
<action name="mActionGroupItems" >
383386
<property name="text" >
384-
<string>Group Items</string>
387+
<string>Group</string>
388+
</property>
389+
<property name="toolTip" >
390+
<string>Group items</string>
385391
</property>
386392
</action>
387393
<action name="mActionUngroupItems" >
388394
<property name="text" >
389395
<string>Ungroup</string>
390396
</property>
397+
<property name="toolTip" >
398+
<string>Ungroup items</string>
399+
</property>
391400
</action>
392401
<action name="mActionRaiseItems" >
393402
<property name="text" >
394403
<string>Raise</string>
395404
</property>
405+
<property name="toolTip" >
406+
<string>Raise selected items</string>
407+
</property>
396408
</action>
397409
<action name="mActionLowerItems" >
398410
<property name="text" >
399411
<string>Lower</string>
400412
</property>
413+
<property name="toolTip" >
414+
<string>Lower selected items</string>
415+
</property>
401416
</action>
402417
<action name="mActionMoveItemsToTop" >
403418
<property name="text" >
404-
<string>Bring to front</string>
419+
<string>Bring to Front</string>
420+
</property>
421+
<property name="toolTip" >
422+
<string>Move selected items to top</string>
405423
</property>
406424
</action>
407425
<action name="mActionMoveItemsToBottom" >
408426
<property name="text" >
409-
<string>Send to back</string>
427+
<string>Send to Back</string>
428+
</property>
429+
<property name="toolTip" >
430+
<string>Move selected items to bottom</string>
410431
</property>
411432
</action>
412433
</widget>

0 commit comments

Comments
 (0)