Skip to content
Permalink
Browse files

Fixed scale widget height

  • Loading branch information
elpaso authored and m-kuhn committed May 20, 2015
1 parent 832c320 commit 466018214c19fe0892802f5acdc5cda79a321807
Showing with 3 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
  2. +1 −0 src/gui/qgsscalecombobox.cpp
@@ -1790,14 +1790,14 @@ void QgisApp::createStatusBar()
mToggleExtentsViewButton = new QToolButton( statusBar() );
mToggleExtentsViewButton->setObjectName( "mToggleExtentsViewButton" );
mToggleExtentsViewButton->setMaximumWidth( 20 );
mToggleExtentsViewButton->setMaximumHeight( 20 );
//mToggleExtentsViewButton->setMaximumHeight( 20 );
mToggleExtentsViewButton->setIcon( QgsApplication::getThemeIcon( "tracking.png" ) );
mToggleExtentsViewButton->setToolTip( tr( "Toggle extents and mouse position display" ) );
mToggleExtentsViewButton->setCheckable( true );
connect( mToggleExtentsViewButton, SIGNAL( toggled( bool ) ), this, SLOT( extentsViewToggled( bool ) ) );
statusBar()->addPermanentWidget( mToggleExtentsViewButton, 0 );

// add a label to show current scale
// add a label to show current position
mCoordsLabel = new QLabel( QString(), statusBar() );
mCoordsLabel->setObjectName( "mCoordsLabel" );
mCoordsLabel->setFont( myFont );
@@ -112,6 +112,7 @@ void QgsScaleComboBox::showPopup()
blockSignals( true );
view()->setCurrentIndex( model()->index( idx, 0 ) );
blockSignals( false );
view()->setMinimumWidth(view()->sizeHintForColumn(0));
}

//! Function to read the selected scale as text

0 comments on commit 4660182

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