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

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    88 *****************************************************************************/
    99
    10 #ifndef _QWT_DATE_SCALE_DRAW_H_
    11 #define _QWT_DATE_SCALE_DRAW_H_ 1
     10#ifndef QWT_DATE_SCALE_DRAW_H
     11#define QWT_DATE_SCALE_DRAW_H
    1212
    1313#include "qwt_global.h"
    … …  
    1616
    1717/*!
    18   \brief A class for drawing datetime scales
     18   \brief A class for drawing datetime scales
    1919
    20   QwtDateScaleDraw displays values as datetime labels.
    21   The format of the labels depends on the alignment of
    22   the major tick labels.
     20   QwtDateScaleDraw displays values as datetime labels.
     21   The format of the labels depends on the alignment of
     22   the major tick labels.
    2323
    24   The default format strings are:
     24   The default format strings are:
    2525
    26   - Millisecond\n
     26   - Millisecond\n
    2727    "hh:mm:ss:zzz\nddd dd MMM yyyy"
    28   - Second\n
     28   - Second\n
    2929    "hh:mm:ss\nddd dd MMM yyyy"
    30   - Minute\n
     30   - Minute\n
    3131    "hh:mm\nddd dd MMM yyyy"
    32   - Hour\n
     32   - Hour\n
    3333    "hh:mm\nddd dd MMM yyyy"
    34   - Day\n
     34   - Day\n
    3535    "ddd dd MMM yyyy"
    36   - Week\n
     36   - Week\n
    3737    "Www yyyy"
    38   - Month\n
     38   - Month\n
    3939    "MMM yyyy"
    40   - Year\n
     40   - Year\n
    4141    "yyyy"
    4242
    43   The format strings can be modified using setDateFormat()
    44   or individually for each tick label by overloading dateFormatOfDate(),
     43   The format strings can be modified using setDateFormat()
     44   or individually for each tick label by overloading dateFormatOfDate(),
    4545
    46   Usually QwtDateScaleDraw is used in combination with
    47   QwtDateScaleEngine, that calculates scales for datetime
    48   intervals.
     46   Usually QwtDateScaleDraw is used in combination with
     47   QwtDateScaleEngine, that calculates scales for datetime
     48   intervals.
    4949
    50   \sa QwtDateScaleEngine, QwtPlot::setAxisScaleDraw()
    51 */
    52 class QWT_EXPORT QwtDateScaleDraw: public QwtScaleDraw
     50   \sa QwtDateScaleEngine, QwtPlot::setAxisScaleDraw()
     51 */
     52class QWT_EXPORT QwtDateScaleDraw : public QwtScaleDraw
    5353{
    54 public:
    55     QwtDateScaleDraw( Qt::TimeSpec = Qt::LocalTime );
     54  public:
     55    explicit QwtDateScaleDraw( Qt::TimeSpec = Qt::LocalTime );
    5656    virtual ~QwtDateScaleDraw();
    5757
    58     void setDateFormat( QwtDate::IntervalType, const QString & );
     58    void setDateFormat( QwtDate::IntervalType, const QString& );
    5959    QString dateFormat( QwtDate::IntervalType ) const;
    6060
    … …  
    6868    QwtDate::Week0Type week0Type() const;
    6969
    70     virtual QwtText label( double ) const;
     70    virtual QwtText label( double ) const QWT_OVERRIDE;
    7171
    7272    QDateTime toDateTime( double ) const;
    7373
    74 protected:
     74  protected:
    7575    virtual QwtDate::IntervalType
    76         intervalType( const QwtScaleDiv & ) const;
     76    intervalType( const QwtScaleDiv& ) const;
    7777
    78     virtual QString dateFormatOfDate( const QDateTime &,
     78    virtual QString dateFormatOfDate( const QDateTime&,
    7979        QwtDate::IntervalType ) const;
    8080
    81 private:
     81  private:
    8282    class PrivateData;
    83     PrivateData *d_data;
     83    PrivateData* m_data;
    8484};
    8585
Note: See TracChangeset for help on using the changeset viewer.