src/gui/widgets/qabstractspinbox.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
    64 #if defined(Q_WS_X11)
    64 #if defined(Q_WS_X11)
    65 #include <limits.h>
    65 #include <limits.h>
    66 #endif
    66 #endif
    67 
    67 
    68 #if defined(Q_OS_SYMBIAN)
    68 #if defined(Q_OS_SYMBIAN)
    69 #include <W32STD.H>
    69 #include <w32std.h>
    70 #include <private/qt_s60_p.h>
    70 #include <private/qt_s60_p.h>
    71 #endif
    71 #endif
    72 
    72 
    73 //#define QABSTRACTSPINBOX_QSBDEBUG
    73 //#define QABSTRACTSPINBOX_QSBDEBUG
    74 #ifdef QABSTRACTSPINBOX_QSBDEBUG
    74 #ifdef QABSTRACTSPINBOX_QSBDEBUG
  1178 #if defined(Q_OS_SYMBIAN)
  1178 #if defined(Q_OS_SYMBIAN)
  1179     TTimeIntervalMicroSeconds32 initialTime;
  1179     TTimeIntervalMicroSeconds32 initialTime;
  1180     TTimeIntervalMicroSeconds32 time;
  1180     TTimeIntervalMicroSeconds32 time;
  1181     S60->wsSession().GetKeyboardRepeatRate(initialTime, time);
  1181     S60->wsSession().GetKeyboardRepeatRate(initialTime, time);
  1182     ret = time.Int() / 1000; // msecs
  1182     ret = time.Int() / 1000; // msecs
  1183 #elif defined(Q_OS_WIN) and !defined(Q_OS_WINCE)
  1183 #elif defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
  1184     DWORD time;
  1184     DWORD time;
  1185     if (SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, &time, 0) != FALSE)
  1185     if (SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, &time, 0) != FALSE)
  1186         ret = static_cast<int>(1000 / static_cast<int>(time)); // msecs
  1186         ret = static_cast<int>(1000 / static_cast<int>(time)); // msecs
  1187 #endif
  1187 #endif
  1188     return ret; // msecs
  1188     return ret; // msecs