mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-30 00:04:58 -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
|
#endif
|
||||||
|
|
||||||
int placeholderMinWidth = mLineEdit->fontMetrics().width( mLineEdit->placeholderText() );
|
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 );
|
resize( minWidth, 30 );
|
||||||
QSizePolicy sizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Preferred );
|
QSizePolicy sizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Preferred );
|
||||||
sizePolicy.setHorizontalStretch( 0 );
|
sizePolicy.setHorizontalStretch( 0 );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user