Changeset 501 for tests/widget/widget.cpp
- Timestamp:
- Feb 2, 2010, 10:58:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/widget/widget.cpp
r499 r501 94 94 void mousePressEvent(QMouseEvent *aE) 95 95 { 96 96 97 ++mPressed; 97 98 update(); … … 100 101 void mouseReleaseEvent(QMouseEvent *aE) 101 102 { 103 102 104 ++mPressed; 103 105 update(); … … 494 496 switch (aE->type()) 495 497 { 496 #if 1498 #if 497 499 case QEvent::Enter: 498 500 qDebug() << this << "Enter"; … … 708 710 #endif 709 711 710 #if 1712 #if 711 713 QRect r = QApplication::desktop()->availableGeometry(); 712 714 MyWidget widget; … … 734 736 #endif 735 737 736 #if 0738 #if 737 739 //-------------------------------------------------------------------------- 738 740 // QFontDialog test 739 741 { 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 740 758 QFontDialog fntDlg; 741 759 fntDlg.exec(); 742 760 761 762 763 764 765 743 766 { 744 767 QFont font("MyCoolFont"); 745 QFontInfo info(font);746 qDebug() << info.family();747 }748 {749 QFont font("MyCoolFont2");750 768 QFontInfo info(font); 751 769 qDebug() << info.family(); … … 798 816 #endif 799 817 800 if (!app.topLevelWidgets().isEmpty()) 818 bool haveVisibleTops = false; 819 foreach(QWidget *top, app.topLevelWidgets()) { 820 if (top->isVisible()) { 821 haveVisibleTops = true; 822 break; 823 } 824 } 825 826 if (haveVisibleTops) 801 827 return app.exec(); 802 828
Note:
See TracChangeset
for help on using the changeset viewer.