- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/tools/shared/qtpropertybrowser/qtpropertybrowserutils.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 48 48 #include <QtGui/QLineEdit> 49 49 #include <QtGui/QMenu> 50 #include <QtCore/QLocale> 50 51 51 52 QT_BEGIN_NAMESPACE … … 209 210 } 210 211 212 QString QtPropertyBrowserUtils::dateFormat() 213 { 214 QLocale loc; 215 return loc.dateFormat(QLocale::ShortFormat); 216 } 217 218 QString QtPropertyBrowserUtils::timeFormat() 219 { 220 QLocale loc; 221 // ShortFormat is missing seconds on UNIX. 222 return loc.timeFormat(QLocale::LongFormat); 223 } 224 225 QString QtPropertyBrowserUtils::dateTimeFormat() 226 { 227 QString format = dateFormat(); 228 format += QLatin1Char(' '); 229 format += timeFormat(); 230 return format; 231 } 211 232 212 233 QtBoolEdit::QtBoolEdit(QWidget *parent) :
Note:
See TracChangeset
for help on using the changeset viewer.