Offer QWindow API for KJobWidgets:: decorators
ClosedPublic

Authored by apol on Nov 21 2017, 10:16 AM.

Details

Summary

This way we can do the same with non-widget windows

Diff Detail

Repository
R288 KJobWidgets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.Nov 21 2017, 10:16 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptNov 21 2017, 10:16 AM
apol updated this revision to Diff 22685.Nov 21 2017, 10:58 AM

Better API

kfunk added a subscriber: kfunk.Nov 21 2017, 11:10 AM
kfunk added inline comments.
src/kjobwidgets.cpp
67

WId is a quintptr: src/gui/kernel/qwindowdefs.h:99:typedef QT_PREPEND_NAMESPACE(quintptr) WId;

Besides: QVariant::fromValue(window->winId()) should work just fine, or?

apol marked an inline comment as done.Nov 21 2017, 11:19 AM
apol added inline comments.
src/kjobwidgets.cpp
67

Note I didn't change any code, I just moved it around.

Removing the cast still seems to work, so I'll do that.

apol updated this revision to Diff 22686.Nov 21 2017, 11:20 AM
apol marked an inline comment as done.

Remove cast

kfunk added inline comments.Nov 21 2017, 12:16 PM
src/kjobwidgets.cpp
67

Note I didn't change any code, I just moved it around.

Whoops, sorry. Didn't notice.

dfaure accepted this revision.Dec 2 2017, 4:41 PM
dfaure added a subscriber: dfaure.
dfaure added inline comments.
src/kjobwidgets.h
76

Unlikely at this point (tagging today).

This revision is now accepted and ready to land.Dec 2 2017, 4:41 PM
This revision was automatically updated to reflect the committed changes.