[Plasma Dialog] Fix flag condition
ClosedPublic

Authored by broulik on Jul 7 2017, 3:01 PM.

Details

Summary

The code wants to check whether we're not a tooltip. This didn't work when other flags,, such as WindowStaysOnTopHint were present.

Test Plan

My Alternatives popup now slides in from the panel. Verified that it follows the panel location (top/bottom)

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.
broulik created this revision.Jul 7 2017, 3:01 PM
Restricted Application added projects: Plasma, Frameworks. · View Herald TranscriptJul 7 2017, 3:01 PM
Restricted Application added subscribers: Frameworks, plasma-devel. · View Herald Transcript
broulik edited the summary of this revision. (Show Details)Jul 7 2017, 3:03 PM
mart accepted this revision.Jul 7 2017, 3:24 PM
This revision is now accepted and ready to land.Jul 7 2017, 3:24 PM

Your description doesn't match the code

This didn't work when other flags,, such as WindowStaysOnTopHint were present.

& Flag is the same as TestFlag()

From what I can tell, you've changed:

if (!tooltipFlag && !notification)
into if(! (tooltipFlag && !notification)

which is quite possibly correct and valid, but it doesn't match what you said.

davidedmundson accepted this revision.Jul 8 2017, 11:58 PM

There's a bunch more q->flags & Qt::Tooltip, if we're going to change one, we should change them all.

broulik updated this revision to Diff 16444.Jul 10 2017, 9:51 AM
  • Fix all tooltip flag checks in dialog
davidedmundson accepted this revision.Jul 10 2017, 9:53 AM
This revision was automatically updated to reflect the committed changes.