Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/corelib/io/qsettings_win.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    536536        }
    537537
     538
     539
     540
     541
     542
     543
     544
     545
     546
    538547        default:
    539548            qWarning("QSettings: Unknown data %d type in Windows registry", static_cast<int>(dataType));
     
    684693        }
    685694
    686         case QVariant::Int: {
     695        case QVariant::Int:
     696        case QVariant::UInt: {
    687697            type = REG_DWORD;
    688             int i = value.toInt();
    689             regValueBuff = QByteArray((const char*)&i, sizeof(int));
     698            qint32 i = value.toInt();
     699            regValueBuff = QByteArray((const char*)&i, sizeof(qint32));
     700            break;
     701        }
     702
     703        case QVariant::LongLong:
     704        case QVariant::ULongLong: {
     705            type = REG_QWORD;
     706            qint64 i = value.toLongLong();
     707            regValueBuff = QByteArray((const char*)&i, sizeof(qint64));
    690708            break;
    691709        }
Note: See TracChangeset for help on using the changeset viewer.