using c++11

This commit is contained in:
Uwe Rathmann 2022-03-24 08:11:29 +01:00
parent c963ec7deb
commit 95dab4301d

View File

@ -47,7 +47,7 @@ static QskDialog::Action qskActionCandidate( const QskDialogButtonBox* buttonBox
static QskDialog::DialogCode qskExec( QskDialogWindow* dialogWindow ) static QskDialog::DialogCode qskExec( QskDialogWindow* dialogWindow )
{ {
#if 1 #if 1
QskFocusIndicator* focusIndicator = new QskFocusIndicator(); auto focusIndicator = new QskFocusIndicator();
focusIndicator->setObjectName( QStringLiteral( "DialogFocusIndicator" ) ); focusIndicator->setObjectName( QStringLiteral( "DialogFocusIndicator" ) );
dialogWindow->addItem( focusIndicator ); dialogWindow->addItem( focusIndicator );
#endif #endif
@ -60,7 +60,7 @@ static QQuickWindow* qskSomeQuickWindow()
// not the best code ever, but as it is a fallback only // not the best code ever, but as it is a fallback only
// maybe we should also add the stacking order // maybe we should also add the stacking order
QWindowList windows = QGuiApplication::topLevelWindows(); const auto windows = QGuiApplication::topLevelWindows();
for ( auto window : windows ) for ( auto window : windows )
{ {
if ( window->isVisible() ) if ( window->isVisible() )