Skip to content

Commit 63e1da9

Browse files
committed
Merge pull request #3809
1bcf81e gui: Prevent status icons from being cut off (Wladimir J. van der Laan)
2 parents f5352da + 1bcf81e commit 63e1da9

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

src/qt/bitcoingui.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ BitcoinGUI::BitcoinGUI(bool fIsTestnet, QWidget *parent) :
151151
// Status bar notification icons
152152
QFrame *frameBlocks = new QFrame();
153153
frameBlocks->setContentsMargins(0,0,0,0);
154-
frameBlocks->setMinimumWidth(56);
155-
frameBlocks->setMaximumWidth(56);
154+
frameBlocks->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
156155
QHBoxLayout *frameBlocksLayout = new QHBoxLayout(frameBlocks);
157156
frameBlocksLayout->setContentsMargins(3,0,3,0);
158157
frameBlocksLayout->setSpacing(3);

src/qt/forms/addressbookpage.ui

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@
122122
</item>
123123
<item>
124124
<widget class="QPushButton" name="closeButton">
125+
<property name="sizePolicy">
126+
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
127+
<horstretch>0</horstretch>
128+
<verstretch>0</verstretch>
129+
</sizepolicy>
130+
</property>
125131
<property name="text">
126132
<string>C&amp;lose</string>
127133
</property>

src/qt/forms/sendcoinsdialog.ui

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,13 +742,25 @@
742742
</property>
743743
<item>
744744
<widget class="QLabel" name="label">
745+
<property name="sizePolicy">
746+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
747+
<horstretch>0</horstretch>
748+
<verstretch>0</verstretch>
749+
</sizepolicy>
750+
</property>
745751
<property name="text">
746752
<string>Balance:</string>
747753
</property>
748754
</widget>
749755
</item>
750756
<item>
751757
<widget class="QLabel" name="labelBalance">
758+
<property name="sizePolicy">
759+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
760+
<horstretch>0</horstretch>
761+
<verstretch>0</verstretch>
762+
</sizepolicy>
763+
</property>
752764
<property name="cursor">
753765
<cursorShape>IBeamCursor</cursorShape>
754766
</property>

0 commit comments

Comments
 (0)