Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_column_symbol.h


Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (4 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_column_symbol.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1313#include "qwt_global.h"
    1414#include "qwt_interval.h"
    15 #include <qpen.h>
    16 #include <qsize.h>
    17 #include <qrect.h>
     15
     16#include <qnamespace.h>
    1817
    1918class QPainter;
    2019class QPalette;
    21 class QRect;
    22 class QwtText;
     20class QRectF;
    2321
    2422/*!
    2523    \brief Directed rectangle representing bounding rectangle and orientation
    2624    of a column.
    27 */
     25 */
    2826class QWT_EXPORT QwtColumnRect
    2927{
    30 public:
     28  public:
    3129    //! Direction of the column
    3230    enum Direction
    … …  
    4644
    4745    //! Build an rectangle with invalid intervals directed BottomToTop.
    48     QwtColumnRect():
    49         direction( BottomToTop )
     46    QwtColumnRect()
     47        : direction( BottomToTop )
    5048    {
    5149    }
    5250
    5351    //! \return A normalized QRect built from the intervals
    54     QRectF toRect() const
    55     {
    56         QRectF r( hInterval.minValue(), vInterval.minValue(),
    57             hInterval.maxValue() - hInterval.minValue(),
    58             vInterval.maxValue() - vInterval.minValue() );
    59         r = r.normalized();
    60 
    61         if ( hInterval.borderFlags() & QwtInterval::ExcludeMinimum )
    62             r.adjust( 1, 0, 0, 0 );
    63         if ( hInterval.borderFlags() & QwtInterval::ExcludeMaximum )
    64             r.adjust( 0, 0, -1, 0 );
    65         if ( vInterval.borderFlags() & QwtInterval::ExcludeMinimum )
    66             r.adjust( 0, 1, 0, 0 );
    67         if ( vInterval.borderFlags() & QwtInterval::ExcludeMaximum )
    68             r.adjust( 0, 0, 0, -1 );
    69 
    70         return r;
    71     }
     52    QRectF toRect() const;
    7253
    7354    //! \return Orientation
    … …  
    9374class QWT_EXPORT QwtColumnSymbol
    9475{
    95 public:
     76  public:
    9677    /*!
    97       Style
    98       \sa setStyle(), style()
    99     */
     78       Style
     79       \sa setStyle(), style()
     80     */
    10081    enum Style
    10182    {
    … …  
    10485
    10586        /*!
    106           The column is painted with a frame depending on the frameStyle()
    107           and lineWidth() using the palette().
     87           The column is painted with a frame depending on the frameStyle()
     88           and lineWidth() using the palette().
    10889         */
    10990        Box,
    11091
    11192        /*!
    112           Styles >= QwtColumnSymbol::UserStyle are reserved for derived
    113           classes of QwtColumnSymbol that overload draw() with
    114           additional application specific symbol types.
     93           Styles >= QwtColumnSymbol::UserStyle are reserved for derived
     94           classes of QwtColumnSymbol that overload draw() with
     95           additional application specific symbol types.
    11596         */
    11697        UserStyle = 1000
    … …  
    11899
    119100    /*!
    120       Frame Style used in Box style().
    121       \sa Style, setFrameStyle(), frameStyle(), setStyle(), setPalette()
     101       Frame Style used in Box style().
     102       \sa Style, setFrameStyle(), frameStyle(), setStyle(), setPalette()
    122103     */
    123104    enum FrameStyle
    … …  
    133114    };
    134115
    135 public:
    136     QwtColumnSymbol( Style = NoStyle );
     116  public:
     117    explicit QwtColumnSymbol( Style = NoStyle );
    137118    virtual ~QwtColumnSymbol();
    138119
    … …  
    143124    int lineWidth() const;
    144125
    145     void setPalette( const QPalette & );
    146     const QPalette &palette() const;
     126    void setPalette( const QPalette& );
     127    const QPalette& palette() const;
    147128
    148129    void setStyle( Style );
    149130    Style style() const;
    150131
    151     virtual void draw( QPainter *, const QwtColumnRect & ) const;
     132    virtual void draw( QPainter*, const QwtColumnRect& ) const;
    152133
    153 protected:
    154     void drawBox( QPainter *, const QwtColumnRect & ) const;
     134  protected:
     135    void drawBox( QPainter*, const QwtColumnRect& ) const;
    155136
    156 private:
     137  private:
     138    Q_DISABLE_COPY(QwtColumnSymbol)
     139
    157140    class PrivateData;
    158     PrivateData* d_data;
     141    PrivateData* m_data;
    159142};
    160143
Note: See TracChangeset for help on using the changeset viewer.