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

    r8127 r9383  
    3737  \brief Constructor
    3838
    39   The default setting is to display tick labels for the 
     39  The default setting is to display tick labels for the
    4040  given time specification. The first week of a year is defined like
    4141  for QwtDate::FirstThursday.
     
    110110  \sa week0Type().
    111111  \note week0Type has no effect beside for intervals classified as
    112         QwtDate::Week. 
     112        QwtDate::Week.
    113113 */
    114114void QwtDateScaleDraw::setWeek0Type( QwtDate::Week0Type week0Type )
     
    118118
    119119/*!
    120   \return Setting how to identify the first week of a year. 
     120  \return Setting how to identify the first week of a year.
    121121  \sa setWeek0Type()
    122122 */
     
    134134  \sa dateFormat(), dateFormatOfDate(), QwtDate::toString()
    135135 */
    136 void QwtDateScaleDraw::setDateFormat( 
     136void QwtDateScaleDraw::setDateFormat(
    137137    QwtDate::IntervalType intervalType, const QString &format )
    138138{
    139     if ( intervalType >= QwtDate::Millisecond && 
     139    if ( intervalType >= QwtDate::Millisecond &&
    140140        intervalType <= QwtDate::Year )
    141141    {
     
    149149  \sa setDateFormat(), dateFormatOfDate()
    150150 */
    151 QString QwtDateScaleDraw::dateFormat( 
     151QString QwtDateScaleDraw::dateFormat(
    152152    QwtDate::IntervalType intervalType ) const
    153153{
    154     if ( intervalType >= QwtDate::Millisecond && 
     154    if ( intervalType >= QwtDate::Millisecond &&
    155155        intervalType <= QwtDate::Year )
    156156    {
     
    158158    }
    159159
    160     return QString::null;
     160    return QString();
    161161}
    162162
     
    182182    Q_UNUSED( dateTime )
    183183
    184     if ( intervalType >= QwtDate::Millisecond && 
     184    if ( intervalType >= QwtDate::Millisecond &&
    185185        intervalType <= QwtDate::Year )
    186186    {
     
    205205{
    206206    const QDateTime dt = toDateTime( value );
    207     const QString fmt = dateFormatOfDate( 
     207    const QString fmt = dateFormatOfDate(
    208208        dt, intervalType( scaleDiv() ) );
    209209
     
    220220  \sa dateFormatOfDate()
    221221 */
    222 QwtDate::IntervalType QwtDateScaleDraw::intervalType( 
     222QwtDate::IntervalType QwtDateScaleDraw::intervalType(
    223223    const QwtScaleDiv &scaleDiv ) const
    224224{
     
    233233        for ( int j = QwtDate::Second; j <= intvType; j++ )
    234234        {
    235             const QDateTime dt0 = QwtDate::floor( dt, 
     235            const QDateTime dt0 = QwtDate::floor( dt,
    236236                static_cast<QwtDate::IntervalType>( j ) );
    237237
Note: See TracChangeset for help on using the changeset viewer.