mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-03 15:55: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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user