mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-02 07:15:27 +08:00
6.5.3 clean
This commit is contained in:
@ -58,7 +58,8 @@ private slots:
|
||||
static inline int visibleTopLevelWidgetCount()
|
||||
{
|
||||
int result= 0;
|
||||
foreach (const QWidget *topLevel, QApplication::topLevelWidgets()) {
|
||||
const auto topLevels = QApplication::topLevelWidgets();
|
||||
for (const QWidget *topLevel : topLevels) {
|
||||
if (topLevel->isVisible())
|
||||
++result;
|
||||
}
|
||||
|
@ -117,7 +117,8 @@ void tst_QToolTip::keyEvent()
|
||||
|
||||
static QWidget *findWhatsThat()
|
||||
{
|
||||
foreach (QWidget *widget, QApplication::topLevelWidgets()) {
|
||||
const auto widgets = QApplication::topLevelWidgets();
|
||||
for (QWidget *widget : widgets) {
|
||||
if (widget->inherits("QWhatsThat"))
|
||||
return widget;
|
||||
}
|
||||
|
@ -45,3 +45,5 @@ android
|
||||
android
|
||||
[optimizedResize_topLevel]
|
||||
android
|
||||
[render]
|
||||
wayland
|
||||
|
Reference in New Issue
Block a user