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).
This commit is contained in:
Hennadii Stepanov committed 2022-04-09 01:54:38 +02:00
1 parent e0680bbce8
commit 3eaf5dbfe0
1 file changed
+1 -2
+1 -2
View File
@@ -141,8 +141,7 @@ public:
opt.rect = rect();
cachedMinimumSizeHint = style()->sizeFromContents(QStyle::CT_SpinBox, &opt, hint, this)
.expandedTo(QApplication::globalStrut());
cachedMinimumSizeHint = style()->sizeFromContents(QStyle::CT_SpinBox, &opt, hint, this);
}
return cachedMinimumSizeHint;
}