Skip to content

Commit 00ac9f5

Browse files
committedJul 21, 2017
fix expanding ratio lock button under kbuntu qt theme
1 parent db74133 commit 00ac9f5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎src/gui/qgsratiolockbutton.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ QgsRatioLockButton::QgsRatioLockButton( QWidget *parent )
2828

2929
{
3030
setMinimumSize( QSize( 24, 24 ) );
31+
setMaximumWidth( fontMetrics().width( "000" ) );
3132
setCheckable( true );
3233
setAutoRaise( true );
3334
connect( this, &QPushButton::clicked, this, &QgsRatioLockButton::buttonClicked );

‎src/ui/qgsmapsavedialog.ui

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ Rasterizing the map is recommended when such effects are used.</string>
9494
</property>
9595
<item row="0" column="0">
9696
<widget class="QgsSpinBox" name="mOutputWidthSpinBox">
97+
<property name="sizePolicy">
98+
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
99+
<horstretch>0</horstretch>
100+
<verstretch>0</verstretch>
101+
</sizepolicy>
102+
</property>
97103
<property name="suffix">
98104
<string> px</string>
99105
</property>

0 commit comments

Comments
 (0)
Please sign in to comment.