Changeset 625 for tests/widget/widget.cpp
- Timestamp:
- Mar 3, 2010, 11:06:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/widget/widget.cpp
r611 r625 535 535 int main(int argc, char **argv) 536 536 { 537 #if 1537 #if 0 538 538 //////////////////////////////////////////////////////////////////////////// 539 539 // Text mode … … 541 541 QCoreApplication app(argc, argv); 542 542 543 #if 1543 #if 0 544 544 //-------------------------------------------------------------------------- 545 545 // Simple QProcess test … … 681 681 app.setQuitOnLastWindowClosed(true); 682 682 683 #if 0683 #if 1 684 684 //-------------------------------------------------------------------------- 685 685 // locale test … … 690 690 qWarning() << ""; 691 691 qWarning() << "Available codecs :\n" << QTextCodec::availableCodecs(); 692 qWarning() << ""; 693 qWarning() << "System locale :" << locale.name(); 692 694 qWarning() << ""; 693 695 qWarning() << "Codec for locale :" << QTextCodec::codecForLocale()->name(); … … 699 701 << "[" << locale.language() << "]"; 700 702 qWarning() << ""; 703 qWarning() << "Current date :" << locale.toString(QDate::currentDate(), QLocale::ShortFormat); 704 qWarning() << "Current date (long) :" << locale.toString(QDate::currentDate(), QLocale::LongFormat); 705 qWarning() << "Current time :" << locale.toString(QTime::currentTime(), QLocale::ShortFormat); 706 qWarning() << "Current time (long) :" << locale.toString(QTime::currentTime(), QLocale::LongFormat); 707 qWarning() << "Current date time :" << locale.toString(QDateTime::currentDateTime(), QLocale::ShortFormat); 708 qWarning() << "Current datetime (l):" << locale.toString(QDateTime::currentDateTime(), QLocale::LongFormat); 701 709 702 710 testCodec("First 3 months", … … 778 786 dlg.setFileMode(QFileDialog::ExistingFile); 779 787 //dlg.setFilter(QDir::Dirs | QDir::Files | QDir::Drives); 780 dlg.setNameFilter("*.exe ");788 dlg.setNameFilter("*.exe;;*"); 781 789 dlg.selectFile("mplayer.exe"); 782 790 dlg.exec();
Note:
See TracChangeset
for help on using the changeset viewer.