Fix MinGW-warnings about comparing signed/unsigned.
Change-Id: I970264e5b096a3d6384b59d0ae0876bb80fd0009 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
ced523af7a
commit
6f225b0b5d
@ -270,7 +270,7 @@ bool QWindowsAccessibility::handleAccessibleObjectFromWindowRequest(HWND hwnd, W
|
||||
{
|
||||
if (static_cast<long>(lParam) == static_cast<long>(UiaRootObjectId)) {
|
||||
/* For UI Automation */
|
||||
} else if ((DWORD)lParam == OBJID_CLIENT) {
|
||||
} else if ((DWORD)lParam == DWORD(OBJID_CLIENT)) {
|
||||
#if 1
|
||||
// Ignoring all requests while starting up
|
||||
// ### Maybe QPA takes care of this???
|
||||
|
@ -304,10 +304,10 @@ private:
|
||||
class DragCursorHandle {
|
||||
Q_DISABLE_COPY(DragCursorHandle)
|
||||
public:
|
||||
DragCursorHandle(HCURSOR c, quint64 k) : cursor(c), cacheKey(k) {}
|
||||
DragCursorHandle(HCURSOR c, qint64 k) : cursor(c), cacheKey(k) {}
|
||||
~DragCursorHandle() { DestroyCursor(cursor); }
|
||||
HCURSOR cursor;
|
||||
quint64 cacheKey;
|
||||
qint64 cacheKey;
|
||||
};
|
||||
typedef QMap <Qt::DropAction, QSharedPointer<DragCursorHandle> > ActionCursorMap;
|
||||
|
||||
@ -490,7 +490,7 @@ QWindowsOleDropSource::GiveFeedback(DWORD dwEffect)
|
||||
qDebug("%s dwEffect=%lu, action=%d", __FUNCTION__, dwEffect, action);
|
||||
|
||||
QSharedPointer<DragCursorHandle> cursorHandler = m_cursors.value(action);
|
||||
quint64 currentCacheKey = m_drag->currentDrag()->dragCursor(action).cacheKey();
|
||||
qint64 currentCacheKey = m_drag->currentDrag()->dragCursor(action).cacheKey();
|
||||
if (cursorHandler.isNull() || currentCacheKey != cursorHandler->cacheKey)
|
||||
createCursors();
|
||||
|
||||
|
@ -1126,7 +1126,7 @@ QList<int> QWindowsKeyMapper::possibleKeys(const QKeyEvent *e) const
|
||||
}
|
||||
result << int(baseKey + keyMods); // The base key is _always_ valid, of course
|
||||
|
||||
for (int i = 1; i < NumMods; ++i) {
|
||||
for (size_t i = 1; i < NumMods; ++i) {
|
||||
Qt::KeyboardModifiers neededMods = ModsTbl[i];
|
||||
quint32 key = kbItem.qtKey[i];
|
||||
if (key && key != baseKey && ((keyMods & neededMods) == neededMods))
|
||||
|
@ -1581,7 +1581,7 @@ void QWindowsVistaStyle::drawComplexControl(ComplexControl control, const QStyle
|
||||
bool doTransition = ((state & State_Sunken) != (oldState & State_Sunken) ||
|
||||
(state & State_On) != (oldState & State_On) ||
|
||||
(state & State_MouseOver) != (oldState & State_MouseOver) ||
|
||||
oldActiveControls != option->activeSubControls);
|
||||
oldActiveControls != int(option->activeSubControls));
|
||||
|
||||
if (qstyleoption_cast<const QStyleOptionSlider *>(option)) {
|
||||
QRect oldSliderPos = styleObject->property("_q_stylesliderpos").toRect();
|
||||
|
Loading…
Reference in New Issue
Block a user