Changeset 561 for trunk/src/qt3support/widgets/q3datetimeedit.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/qt3support/widgets/q3datetimeedit.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the Qt3Support module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 115 115 116 116 #if defined(Q_WS_WIN) 117 QT_WA({ 118 TCHAR data[10]; 119 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDATE, data, 10); 120 *lDateSep = QString::fromUtf16((ushort*)data); 121 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STIME, data, 10); 122 *lTimeSep = QString::fromUtf16((ushort*)data); 123 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ITIME, data, 10); 124 lAMPM = QString::fromUtf16((ushort*)data).toInt()==0; 125 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_S1159, data, 10); 126 QString am = QString::fromUtf16((ushort*)data); 127 if (!am.isEmpty()) 128 lAM = new QString(am); 129 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_S2359, data, 10); 130 QString pm = QString::fromUtf16((ushort*)data); 131 if (!pm.isEmpty() ) 132 lPM = new QString(pm); 133 } , { 134 char data[10]; 135 GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_SDATE, (char*)&data, 10); 136 *lDateSep = QString::fromLocal8Bit(data); 137 GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_STIME, (char*)&data, 10); 138 *lTimeSep = QString::fromLocal8Bit(data); 139 GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_ITIME, (char*)&data, 10); 140 lAMPM = QString::fromLocal8Bit(data).toInt()==0; 141 GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_S1159, (char*)&data, 10); 142 QString am = QString::fromLocal8Bit(data); 143 if (!am.isEmpty()) 144 lAM = new QString(am); 145 GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_S2359, (char*)&data, 10); 146 QString pm = QString::fromLocal8Bit(data); 147 if (!pm.isEmpty()) 148 lPM = new QString(pm); 149 }); 117 wchar_t data[10]; 118 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDATE, data, 10); 119 *lDateSep = QString::fromWCharArray(data); 120 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STIME, data, 10); 121 *lTimeSep = QString::fromWCharArray(data); 122 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ITIME, data, 10); 123 lAMPM = QString::fromWCharArray(data).toInt() == 0; 124 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_S1159, data, 10); 125 QString am = QString::fromWCharArray(data); 126 if (!am.isEmpty()) 127 lAM = new QString(am); 128 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_S2359, data, 10); 129 QString pm = QString::fromWCharArray(data); 130 if (!pm.isEmpty() ) 131 lPM = new QString(pm); 150 132 #else 151 133 *lDateSep = QLatin1Char('-'); … … 1263 1245 1264 1246 1265 /*! \ reimp1247 /*! \ 1266 1248 1267 1249 */ … … 1295 1277 1296 1278 1297 /*! \ reimp1279 /*! \ 1298 1280 1299 1281 */ … … 1459 1441 } 1460 1442 1461 /*! \ reimp1443 /*! \ 1462 1444 1463 1445 */ … … 1553 1535 1554 1536 1555 /*! \ reimp1537 /*! \ 1556 1538 1557 1539 */ … … 1700 1682 } 1701 1683 1702 /*! \ reimp1684 /*! \ 1703 1685 1704 1686 */ … … 2078 2060 2079 2061 2080 /*! \ reimp2062 /*! \ 2081 2063 2082 2064 */ … … 2124 2106 2125 2107 2126 /*! \ reimp2108 /*! \ 2127 2109 2128 2110 */ … … 2192 2174 2193 2175 2194 /*! \ reimp2176 /*! \ 2195 2177 2196 2178 */ … … 2327 2309 } 2328 2310 2329 /*! \ reimp2311 /*! \ 2330 2312 2331 2313 */ … … 2496 2478 } 2497 2479 2498 /*! \ reimp2480 /*! \ 2499 2481 2500 2482 */ … … 2667 2649 2668 2650 2669 /*! 2651 /*! 2670 2652 \reimp 2671 2653 2672 Intercepts and handles resize events which have special meaning 2673 for the Q3DateTimeEdit. 2674 */ 2675 2654 Intercepts and handles the resize \a event, which hase a 2655 special meaning for the Q3DateTimeEdit. 2656 */ 2676 2657 void Q3DateTimeEdit::resizeEvent(QResizeEvent *) 2677 2658 {
Note:
See TracChangeset
for help on using the changeset viewer.