diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/qt3support/other/q3dragobject.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt3support/other/q3dragobject.cpp b/src/qt3support/other/q3dragobject.cpp index e089af1621..addfa6f637 100644 --- a/src/qt3support/other/q3dragobject.cpp +++ b/src/qt3support/other/q3dragobject.cpp @@ -1505,7 +1505,9 @@ void Q3ColorDrag::setColor(const QColor &col) b = htons(b); ushort rgba[4] = { - r, g, b, + static_cast<ushort>(r), + static_cast<ushort>(g), + static_cast<ushort>(b), 0xffff // Alpha not supported yet. }; QByteArray data; |