Note to self: shifting an uint without explicit typecast might well end up
in a signed int.
return UiStyle::Invalid;
}
if(condName == "fg-color")
return UiStyle::Invalid;
}
if(condName == "fg-color")
- fmtType |= 0x00400000 | (col << 24);
+ fmtType |= 0x00400000 | (quint32)(col << 24);
- fmtType |= 0x00800000 | (col << 28);
+ fmtType |= 0x00800000 | (quint32)(col << 28);
} else {
qWarning() << Q_FUNC_INFO << tr("Unhandled condition: %1").arg(condName);
return UiStyle::Invalid;
} else {
qWarning() << Q_FUNC_INFO << tr("Unhandled condition: %1").arg(condName);
return UiStyle::Invalid;
color &= 0x0f;
if(s[pos+3] == 'f') {
curfmt &= 0xf0ffffff;
color &= 0x0f;
if(s[pos+3] == 'f') {
curfmt &= 0xf0ffffff;
- curfmt |= (color << 24) | 0x00400000;
+ curfmt |= (quint32)(color << 24) | 0x00400000;
} else {
curfmt &= 0x0fffffff;
} else {
curfmt &= 0x0fffffff;
- curfmt |= (color << 28) | 0x00800000;
+ curfmt |= (quint32)(color << 28) | 0x00800000;