Skip to content

Commit 3eaf5db

Browse files
committed
qt: Remove QApplication::globalStrut() call
This function has been deprecated in Qt 5.15.0, and has been removed in Qt 6 (see 033d01bd6e2aef740ad1408a04d3ca0ae3b9ba9b upstream commit).
1 parent e0680bb commit 3eaf5db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/qt/bitcoinamountfield.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ class AmountSpinBox: public QAbstractSpinBox
141141

142142
opt.rect = rect();
143143

144-
cachedMinimumSizeHint = style()->sizeFromContents(QStyle::CT_SpinBox, &opt, hint, this)
145-
.expandedTo(QApplication::globalStrut());
144+
cachedMinimumSizeHint = style()->sizeFromContents(QStyle::CT_SpinBox, &opt, hint, this);
146145
}
147146
return cachedMinimumSizeHint;
148147
}

0 commit comments

Comments
 (0)