Skip to content
Permalink
Browse files

[Composer] Fix ComposerMapWidget's label is not explicit

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 1, 2014
1 parent 10ffceb commit a3094cb5b51fae3d77093b0b503173134720fd83
Showing with 3 additions and 1 deletion.
  1. +2 −0 src/app/composer/qgscomposermapwidget.cpp
  2. +1 −1 src/ui/qgscomposermapwidgetbase.ui
@@ -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 );
@@ -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>

0 comments on commit a3094cb

Please sign in to comment.
You can’t perform that action at this time.