D28062: Fix compiler warnings
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
zzag added inline comments.
INLINE COMMENTS
> debug_console.cpp:713
> switch (value.type()) {
> - case QMetaType::QPoint: {
> + case QVariant::Point: {
> const QPoint p = value.toPoint();
Could you please revert this change? The documentation says that we should use QMetaType.
I assume the compiler doesn't like conversions between QVariant::Type and QMetaType::Type. If that's the case, we could cast the return value of `value.type()` or use `value.userType()` as Qt folks do.
REPOSITORY
R108 KWin
REVISION DETAIL
https://phabricator.kde.org/D28062
To: apol, #kwin
Cc: zzag, kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart