Clean up old bug workaround in KCMFileIndexer
ClosedPublic

Authored by meven on Jun 22 2019, 11:15 PM.

Diff Detail

Repository
R102 KInfoCenter
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
meven created this revision.Jun 22 2019, 11:15 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJun 22 2019, 11:15 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
meven requested review of this revision.Jun 22 2019, 11:15 PM
ngraham retitled this revision from Clean up old bug workarount in KCMFileIndexer to Clean up old bug workaround in KCMFileIndexer.Jun 22 2019, 11:17 PM
ngraham added reviewers: mart, Plasma.
ngraham added subscribers: mart, ngraham.

@mart do you know the history of this?

davidedmundson accepted this revision.Aug 14 2019, 6:39 PM
davidedmundson added a subscriber: davidedmundson.

It was first added in 2d5f289767ee7b7c54f8b55e8032d20ef7f092f4 with some pretty sparse docs, then copy pasted all over the place.

It does appear to be no longer needed.

I suspect https://codereview.qt-project.org/c/qt/qtbase/+/139775 fixes it which was back in 5.6

If we remove here, please can we also do

kcms/desktoptheme/kcm.cpp: qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
kcms/fonts/fonts.cpp: qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
kcms/lookandfeel/kcm.cpp: qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);

in p-d

This revision is now accepted and ready to land.Aug 14 2019, 6:39 PM
This revision was automatically updated to reflect the committed changes.

It was first added in 2d5f289767ee7b7c54f8b55e8032d20ef7f092f4 with some pretty sparse docs, then copy pasted all over the place.

It does appear to be no longer needed.

I suspect https://codereview.qt-project.org/c/qt/qtbase/+/139775 fixes it which was back in 5.6

If we remove here, please can we also do

kcms/desktoptheme/kcm.cpp: qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
kcms/fonts/fonts.cpp: qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
kcms/lookandfeel/kcm.cpp: qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);

in p-d

Will do.

It is also present in other apps than kcms :

$ rg AA_DontCreateNativeWidgetSiblings
systemsettings/sidebar/SidebarMode.cpp
258: qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);

spectacle/src/Main.cpp
37: app.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings, true);

kdevelop/app/main.cpp
348: QCoreApplication::setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);

discover/discover/main.cpp
97: app.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);

I wonder if this can be removed there as well.