Skip to content

Commit

Permalink
[Composer] Fix ComposerMapWidget's label is not explicit
Browse files Browse the repository at this point in the history
The user can only know the ComposerMap's label with it's tooltip. This commit
 proposes to update the ComposerMapWidget'label to be more explicit and to be
 the same as the ComposerMap's tooltip.
  • Loading branch information
rldhont authored and nyalldawson committed Oct 9, 2014
1 parent 10ffceb commit a3094cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/composer/qgscomposermapwidget.cpp
Expand Up @@ -45,6 +45,8 @@
QgsComposerMapWidget::QgsComposerMapWidget( QgsComposerMap* composerMap ): QgsComposerItemBaseWidget( 0, composerMap ), mComposerMap( composerMap )
{
setupUi( this );

mLabel->setText( tr( "Map %1" ).arg( composerMap->id() ) );

//add widget for general composer item properties
QgsComposerItemWidget* itemPropertiesWidget = new QgsComposerItemWidget( this, composerMap );
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgscomposermapwidgetbase.ui
Expand Up @@ -36,7 +36,7 @@
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_3">
<widget class="QLabel" name="mLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
Expand Down

0 comments on commit a3094cb

Please sign in to comment.