mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
Make locator bar a bit wider
This commit is contained in:
parent
b83415688a
commit
1f9512e6db
@ -41,7 +41,7 @@ QgsLocatorWidget::QgsLocatorWidget( QWidget *parent )
|
||||
#endif
|
||||
|
||||
int placeholderMinWidth = mLineEdit->fontMetrics().width( mLineEdit->placeholderText() );
|
||||
int minWidth = qMax( 200, ( int )( placeholderMinWidth * 1.3 ) );
|
||||
int minWidth = qMax( 200, ( int )( placeholderMinWidth * 1.6 ) );
|
||||
resize( minWidth, 30 );
|
||||
QSizePolicy sizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Preferred );
|
||||
sizePolicy.setHorizontalStretch( 0 );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user