Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_textlabel.h


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_plot_textlabel.h

    r8127 r9383  
    2222  In opposite to QwtPlotMarker the position of the label is unrelated to
    2323  plot coordinates.
    24    
     24
    2525  As drawing a text is an expensive operation the label is cached
    2626  in a pixmap to speed up replots.
    2727
    2828  \par Example
    29   The following code shows how to add a title.
     29    The following code shows how to add a title.
     30    \code
     31      QwtText title( "Plot Title" );
     32      title.setRenderFlags( Qt::AlignHCenter | Qt::AlignTop );
    3033
    31 \verbatim
    32     QwtText title( "Plot Title" );
    33     title.setRenderFlags( Qt::AlignHCenter | Qt::AlignTop );
     34      QFont font;
     35      font.setBold( true );
     36      title.setFont( font );
    3437
    35     QFont font;
    36     font.setBold( true );
    37     title.setFont( font );
    38 
    39     QwtPlotTextLabel *titleItem = new QwtPlotTextLabel();
    40     titleItem->setText( title );
    41     titleItem->attach( this );
    42 \endverbatim
     38      QwtPlotTextLabel *titleItem = new QwtPlotTextLabel();
     39      titleItem->setText( title );
     40      titleItem->attach( plot );
     41    \endcode
     42  \endpar
    4343
    4444  \sa QwtPlotMarker
    45 */ 
     45*/
    4646
    4747class QWT_EXPORT QwtPlotTextLabel: public QwtPlotItem
Note: See TracChangeset for help on using the changeset viewer.