Changeset 846 for trunk/tools/qvfb/main.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/tools/qvfb/main.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 44 44 #include <QApplication> 45 45 #include <QRegExp> 46 #include <QLibraryInfo> 47 #include <QLocale> 48 #include <QTranslator> 46 49 #include <stdlib.h> 47 50 #include <stdio.h> … … 73 76 74 77 QApplication app( argc, argv ); 78 79 QTranslator translator; 80 QTranslator qtTranslator; 81 QString sysLocale = QLocale::system().name(); 82 QString resourceDir = QLibraryInfo::location(QLibraryInfo::TranslationsPath); 83 if (translator.load(QLatin1String("qvfb_") + sysLocale, resourceDir) 84 && qtTranslator.load(QLatin1String("qt_") + sysLocale, resourceDir)) { 85 app.installTranslator(&translator); 86 app.installTranslator(&qtTranslator); 87 } 75 88 76 89 int width = 0;
Note:
See TracChangeset
for help on using the changeset viewer.