Skip to content

Commit d2998ef

Browse files
committed
Make the coordinate widget a little bit wider to avoid contents cropping in nowadays KDE styles
1 parent 302529a commit d2998ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsstatusbarcoordinateswidget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void QgsStatusBarCoordinatesWidget::ensureCoordinatesVisible()
317317
{
318318

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

0 commit comments

Comments
 (0)