From 06e2db946fed13cafb4b4000bc7552e839367849 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 30 Nov 2020 13:12:31 +0100 Subject: [PATCH] [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`. --- src/modules/plasmalnf/ThemeInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/plasmalnf/ThemeInfo.cpp b/src/modules/plasmalnf/ThemeInfo.cpp index 82da064be..73f7174b3 100644 --- a/src/modules/plasmalnf/ThemeInfo.cpp +++ b/src/modules/plasmalnf/ThemeInfo.cpp @@ -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 } );