Skip to content

Commit

Permalink
Make the coordinate widget a little bit wider to avoid contents cropp…
Browse files Browse the repository at this point in the history
…ing in nowadays KDE styles
  • Loading branch information
borysiasty committed Oct 24, 2018
1 parent 302529a commit d2998ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsstatusbarcoordinateswidget.cpp
Expand Up @@ -317,7 +317,7 @@ void QgsStatusBarCoordinatesWidget::ensureCoordinatesVisible()
{

//ensure the label is big (and small) enough
int width = std::max( mLineEdit->fontMetrics().width( mLineEdit->text() ) + 10, mMinimumWidth );
int width = std::max( mLineEdit->fontMetrics().width( mLineEdit->text() ) + 16, mMinimumWidth );
if ( mLineEdit->minimumWidth() < width || ( mLineEdit->minimumWidth() - width ) > mTwoCharSize )
{
mLineEdit->setMinimumWidth( width );
Expand Down

0 comments on commit d2998ef

Please sign in to comment.