#include "KDChartLeveyJenningsDiagram.h"
#include "KDChartLeveyJenningsDiagram_p.h"
#include <QDateTime>
#include <QFontMetrics>
#include <QPainter>
#include <QSvgRenderer>
#include <QVector>
#include "KDChartChart.h"
#include "KDChartTextAttributes.h"
#include "KDChartAbstractGrid.h"
#include <KDABLibFakes>
Go to the source code of this file.
Defines | |
#define | d d_func() |
Functions | |
static QDate | ceilDay (const QDateTime &dt) |
static QDateTime | ceilHour (const QDateTime &dt) |
static QDate | floorDay (const QDateTime &dt) |
static QDateTime | floorHour (const QDateTime &dt) |
#define d d_func() |
Definition at line 51 of file KDChartLeveyJenningsDiagram.cpp.
static QDate ceilDay | ( | const QDateTime & | dt | ) | [static] |
Definition at line 398 of file KDChartLeveyJenningsDiagram.cpp.
Referenced by KDChart::LeveyJenningsDiagram::timeRange().
00399 { 00400 QDate result = dt.date(); 00401 00402 if( QDateTime( result, QTime() ) < dt ) 00403 result = result.addDays( 1 ); 00404 00405 return result; 00406 }
static QDateTime ceilHour | ( | const QDateTime & | dt | ) | [static] |
Definition at line 415 of file KDChartLeveyJenningsDiagram.cpp.
Referenced by KDChart::LeveyJenningsDiagram::timeRange().
00416 { 00417 QDateTime result( dt.date(), QTime( dt.time().hour(), 0 ) ); 00418 00419 if( result < dt ) 00420 result = result.addSecs( 3600 ); 00421 00422 return result; 00423 }
static QDate floorDay | ( | const QDateTime & | dt | ) | [static] |
Definition at line 392 of file KDChartLeveyJenningsDiagram.cpp.
Referenced by KDChart::LeveyJenningsDiagram::timeRange().
static QDateTime floorHour | ( | const QDateTime & | dt | ) | [static] |
Definition at line 409 of file KDChartLeveyJenningsDiagram.cpp.
Referenced by KDChart::LeveyJenningsDiagram::timeRange().