Changeset 341
- Timestamp:
- Nov 23, 2009, 7:52:20 PM (15 years ago)
- Location:
- tests/widget
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/widget/widget.cpp ¶
r311 r341 278 278 #endif 279 279 280 #if 1280 #if 0 281 281 QMenuBar *mb = new QMenuBar(this); 282 282 … … 455 455 int main(int argc, char **argv) 456 456 { 457 #if 1 458 //////////////////////////////////////////////////////////////////////////// 459 // Text mode 460 461 QCoreApplication app(argc, argv); 462 463 qWarning() << "Available codecs :\n" << QTextCodec::availableCodecs(); 464 qWarning() << ""; 465 qWarning() << "Codec for locale :" << QTextCodec::codecForLocale()->name(); 466 qWarning() << " Aliases :" << QTextCodec::codecForLocale()->aliases(); 467 qWarning() << ""; 468 qWarning() << "Library paths :" << QApplication::libraryPaths(); 469 470 #else 471 //////////////////////////////////////////////////////////////////////////// 472 // GUI 473 457 474 QApplication app(argc, argv); 458 475 476 QRect r = QApplication::desktop()->availableGeometry(); 459 477 MyWidget widget; 460 478 widget.resize(100, 100); 461 widget.move( 1280-168, 1024-200);479 widget.move(r.width() - 200, r.height() - 200); 462 480 463 481 widget.show(); … … 510 528 511 529 return app.exec(); 530 #endif 512 531 } 513 532 -
TabularUnified tests/widget/widget.pro ¶
r311 r341 1 1 QT = core gui 2 CONFIG += console 2 3 3 4 SOURCES += widget.cpp
Note:
See TracChangeset
for help on using the changeset viewer.