[plasmalnf] Older Qt doesn't have -> for iterator

With Qt 5.15.2 (and clang), `k->first` works, but this breaks
with Qt 5.11 (and gcc), this is not available and the dereference
  must be written differently, `(*k).first`.
This commit is contained in:
Adriaan de Groot 2020-11-30 13:12:31 +01:00
parent ff66eacd0d
commit 06e2db946f

View File

@ -185,7 +185,7 @@ ThemesModel::setThemeImage( const QMap< QString, QString >& images )
QSignalBlocker b( this );
for ( auto k = images.constKeyValueBegin(); k != images.constKeyValueEnd(); ++k )
{
setThemeImage( k->first, k->second );
setThemeImage( (*k).first, (*k).second );
}
}
emit dataChanged( index( 0, 0 ), index( m_themes->count() - 1 ), { ImageRole } );