Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_scale_widget.cpp


Ignore:
Timestamp:
Mar 19, 2021, 9:15:03 AM (3 years ago)
Author:
stoecker
Message:

update to qwt verion 6.1.1 to fix build with newer Qt5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_scale_widget.cpp

    r8127 r9383  
    2121#include <qstyle.h>
    2222#include <qstyleoption.h>
     23#include <qapplication.h>
    2324
    2425class QwtScaleWidget::PrivateData
     
    146147        else
    147148            d_data->layoutFlags &= ~flag;
     149
     150        update();
    148151    }
    149152}
     
    574577    {
    575578        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
    576596        update();
    577597    }
     
    768788  is returned.
    769789
    770   \param start Return parameter for the border width at 
     790  \param start Return parameter for the border width at
    771791               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
    773793             end of the scale
    774794
     
    808828  the widget borders.
    809829
    810   \param start Return parameter for the border width at 
     830  \param start Return parameter for the border width at
    811831               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
    813833             end of the scale
    814834
Note: See TracChangeset for help on using the changeset viewer.