Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_date_scale_draw.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_date_scale_draw.cpp
r8127 r9383 37 37 \brief Constructor 38 38 39 The default setting is to display tick labels for the 39 The default setting is to display tick labels for the 40 40 given time specification. The first week of a year is defined like 41 41 for QwtDate::FirstThursday. … … 110 110 \sa week0Type(). 111 111 \note week0Type has no effect beside for intervals classified as 112 QwtDate::Week. 112 QwtDate::Week. 113 113 */ 114 114 void QwtDateScaleDraw::setWeek0Type( QwtDate::Week0Type week0Type ) … … 118 118 119 119 /*! 120 \return Setting how to identify the first week of a year. 120 \return Setting how to identify the first week of a year. 121 121 \sa setWeek0Type() 122 122 */ … … 134 134 \sa dateFormat(), dateFormatOfDate(), QwtDate::toString() 135 135 */ 136 void QwtDateScaleDraw::setDateFormat( 136 void QwtDateScaleDraw::setDateFormat( 137 137 QwtDate::IntervalType intervalType, const QString &format ) 138 138 { 139 if ( intervalType >= QwtDate::Millisecond && 139 if ( intervalType >= QwtDate::Millisecond && 140 140 intervalType <= QwtDate::Year ) 141 141 { … … 149 149 \sa setDateFormat(), dateFormatOfDate() 150 150 */ 151 QString QwtDateScaleDraw::dateFormat( 151 QString QwtDateScaleDraw::dateFormat( 152 152 QwtDate::IntervalType intervalType ) const 153 153 { 154 if ( intervalType >= QwtDate::Millisecond && 154 if ( intervalType >= QwtDate::Millisecond && 155 155 intervalType <= QwtDate::Year ) 156 156 { … … 158 158 } 159 159 160 return QString ::null;160 return QString(); 161 161 } 162 162 … … 182 182 Q_UNUSED( dateTime ) 183 183 184 if ( intervalType >= QwtDate::Millisecond && 184 if ( intervalType >= QwtDate::Millisecond && 185 185 intervalType <= QwtDate::Year ) 186 186 { … … 205 205 { 206 206 const QDateTime dt = toDateTime( value ); 207 const QString fmt = dateFormatOfDate( 207 const QString fmt = dateFormatOfDate( 208 208 dt, intervalType( scaleDiv() ) ); 209 209 … … 220 220 \sa dateFormatOfDate() 221 221 */ 222 QwtDate::IntervalType QwtDateScaleDraw::intervalType( 222 QwtDate::IntervalType QwtDateScaleDraw::intervalType( 223 223 const QwtScaleDiv &scaleDiv ) const 224 224 { … … 233 233 for ( int j = QwtDate::Second; j <= intvType; j++ ) 234 234 { 235 const QDateTime dt0 = QwtDate::floor( dt, 235 const QDateTime dt0 = QwtDate::floor( dt, 236 236 static_cast<QwtDate::IntervalType>( j ) ); 237 237
Note:
See TracChangeset
for help on using the changeset viewer.