Original code (copied from Aurorae) created a QMouseEvent for
QHoverEvents. Whilst it apparently worked, it's technically wrong.
It's safer to have an explicit type check given we come from a downcast
QEvent* and then build the correct event.
zzag |
KWin |
Original code (copied from Aurorae) created a QMouseEvent for
QHoverEvents. Whilst it apparently worked, it's technically wrong.
It's safer to have an explicit type check given we come from a downcast
QEvent* and then build the correct event.
Hovered some icons
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
libkwineffects/kwineffectquickview.cpp | ||
---|---|---|
206 | Why did you put Q_FALLTHOURGH here? No compiler will complain about implicit fallthough in this case. |
libkwineffects/kwineffectquickview.cpp | ||
---|---|---|
206 | No specific reason. No compiler will complain about its presence either. |
libkwineffects/kwineffectquickview.cpp | ||
---|---|---|
206 | Okay, I see. Could you please drop these Q_FALLTHOUGH macros? There are a couple of reasons to do that: (a) Putting Q_FALLTHOUGH or [[fallthrough]] in empty case blocks is uncommon |