Changeset 380 for tests/widget/widget.cpp
- Timestamp:
- Dec 4, 2009, 2:49:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/widget/widget.cpp
r368 r380 501 501 int main(int argc, char **argv) 502 502 { 503 #if 1503 #if 0 504 504 //////////////////////////////////////////////////////////////////////////// 505 505 // Text mode … … 548 548 #endif 549 549 550 #if 1550 #if 0 551 551 //-------------------------------------------------------------------------- 552 552 // QDir::mkdir/mkpath test … … 598 598 599 599 QApplication app(argc, argv); 600 app.setQuitOnLastWindowClosed(true); 600 601 601 602 #if 0 … … 636 637 637 638 #if 0 639 //-------------------------------------------------------------------------- 640 // QFontDialog test 638 641 { 639 642 QFontDialog fntDlg; … … 653 656 #endif 654 657 658 #if 1 659 //-------------------------------------------------------------------------- 660 // QFileDialog test 661 { 662 QFileDialog dlg; 663 664 dlg.setFileMode(QFileDialog::ExistingFile); 665 //dlg.setFilter(QDir::Dirs | QDir::Files | QDir::Drives); 666 dlg.setNameFilter("*.exe"); 667 dlg.selectFile("mplayer.exe"); 668 dlg.exec(); 669 670 //PRINT_EXPR(QFileDialog::getOpenFileName()); 671 } 672 #endif 673 655 674 #if 0 656 675 QSound snd2("C:/MMOS2/SOUNDS/DESKTOP/dsk_shut.wav"); … … 681 700 #endif 682 701 683 return app.exec(); 702 if (!app.topLevelWidgets().isEmpty()) 703 return app.exec(); 704 705 return 0; 684 706 #endif 685 707 }
Note:
See TracChangeset
for help on using the changeset viewer.