Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_scale_widget.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_scale_widget.cpp
r8127 r9383 21 21 #include <qstyle.h> 22 22 #include <qstyleoption.h> 23 #include <qapplication.h> 23 24 24 25 class QwtScaleWidget::PrivateData … … 146 147 else 147 148 d_data->layoutFlags &= ~flag; 149 150 update(); 148 151 } 149 152 } … … 574 577 { 575 578 updateGeometry(); 579 580 #if 1 581 /* 582 for some reason updateGeometry does not send a LayoutRequest event 583 when the parent is not visible and has no layout 584 */ 585 586 if ( QWidget* w = parentWidget() ) 587 { 588 if ( !w->isVisible() && w->layout() == NULL ) 589 { 590 if ( w->testAttribute( Qt::WA_WState_Polished ) ) 591 QApplication::postEvent( w, new QEvent( QEvent::LayoutRequest ) ); 592 } 593 } 594 #endif 595 576 596 update(); 577 597 } … … 768 788 is returned. 769 789 770 \param start Return parameter for the border width at 790 \param start Return parameter for the border width at 771 791 the beginning of the scale 772 \param end Return parameter for the border width at the 792 \param end Return parameter for the border width at the 773 793 end of the scale 774 794 … … 808 828 the widget borders. 809 829 810 \param start Return parameter for the border width at 830 \param start Return parameter for the border width at 811 831 the beginning of the scale 812 \param end Return parameter for the border width at the 832 \param end Return parameter for the border width at the 813 833 end of the scale 814 834
Note:
See TracChangeset
for help on using the changeset viewer.