forked from dimv36/QCustomPlot-PyQt5
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaxistickerdatetime.sip
32 lines (28 loc) · 935 Bytes
/
axistickerdatetime.sip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/** PyQt5 binding for QCustomPlot v2.0.0
*
* Authors: Dmitry Voronin, Giuseppe Corbelli
* License: MIT
*
* QCustomPlot author: Emanuel Eichhammer
* QCustomPlot Website/Contact: http://www.qcustomplot.com
*/
class QCPAxisTickerDateTime : public QCPAxisTicker
{
%TypeHeaderCode
#include <QCustomPlot/src/axis/axistickerdatetime.h>
%End
public:
QCPAxisTickerDateTime();
// getters:
QString dateTimeFormat() const;
Qt::TimeSpec dateTimeSpec() const;
// setters:
void setDateTimeFormat(const QString &format);
void setDateTimeSpec(Qt::TimeSpec spec);
void setTickOrigin(double origin); // hides base class method but calls baseclass implementation ("using" throws off IDEs and doxygen)
void setTickOrigin(const QDateTime &origin);
// static methods:
static QDateTime keyToDateTime(double key);
static double dateTimeToKey(const QDateTime dateTime);
static double dateTimeToKey(const QDate date);
};