@@ -193,9 +193,7 @@ ParsedDesktopEntryData DesktopEntry::parseText(const QString& id, const QString&
193
193
}
194
194
195
195
void DesktopEntry::updateState (const ParsedDesktopEntryData& newState) {
196
- #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
197
- QScopedPropertyUpdateGroup group;
198
- #endif
196
+ Qt::beginPropertyUpdateGroup ();
199
197
this ->bName = newState.name ;
200
198
this ->bGenericName = newState.genericName ;
201
199
this ->bStartupClass = newState.startupClass ;
@@ -208,6 +206,7 @@ void DesktopEntry::updateState(const ParsedDesktopEntryData& newState) {
208
206
this ->bRunInTerminal = newState.terminal ;
209
207
this ->bCategories = newState.categories ;
210
208
this ->bKeywords = newState.keywords ;
209
+ Qt::endPropertyUpdateGroup ();
211
210
212
211
this ->state = newState;
213
212
this ->updateActions (newState.actions );
@@ -229,13 +228,13 @@ void DesktopEntry::updateActions(const QHash<QString, DesktopActionData>& newAct
229
228
this ->mActions .insert (key, act);
230
229
}
231
230
232
- #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
233
- QScopedPropertyUpdateGroup group;
234
- #endif
231
+ Qt::beginPropertyUpdateGroup ();
235
232
act->bName = d.name ;
236
233
act->bIcon = d.icon ;
237
234
act->bExecString = d.execString ;
238
235
act->bCommand = d.command ;
236
+ Qt::endPropertyUpdateGroup ();
237
+
239
238
act->mEntries = d.entries ;
240
239
}
241
240
0 commit comments