I think it's wrong to set the flags for *every* event() but at least avoid the string comparison Qt does internally in QX11Info::isPlatformX11()
Also, removes the need for an ifdef.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Plasma - Commits
- R242:a0119858e400: [ToolTipDialog] Use KWindowSystem::isPlatformX11() which is cached
Diff Detail
Diff Detail
- Repository
- R242 Plasma Framework (Library)
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
src/declarativeimports/core/tooltipdialog.cpp | ||
---|---|---|
116–119 | Isn't this redundant anyway? The constructor only deviates in initial flags (it doesn't explicitly set Qt::WindowDoesNotAcceptFocus | Qt::WindowStaysOnTopHint). Hmm, if you add these flags to the constructor (don't know if that is allowed) then you can just call "return Dialog::event(e);" after the #endif. |