author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/timeline.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | korganizer/timeline.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/timeline.h b/korganizer/timeline.h index ab3e5d3..bf301fa 100644 --- a/korganizer/timeline.h +++ b/korganizer/timeline.h | |||
@@ -1,33 +1,33 @@ | |||
1 | #ifndef TIMELINE_H | 1 | #ifndef TIMELINE_H |
2 | #define TIMELINE_H | 2 | #define TIMELINE_H |
3 | 3 | ||
4 | #include <qscrollview.h> | 4 | #include <q3scrollview.h> |
5 | #include <qdatetime.h> | 5 | #include <qdatetime.h> |
6 | 6 | ||
7 | class TimeLine : public QScrollView | 7 | class TimeLine : public Q3ScrollView |
8 | { | 8 | { |
9 | Q_OBJECT | 9 | Q_OBJECT |
10 | public: | 10 | public: |
11 | TimeLine( QWidget *parent = 0, const char *name = 0 ); | 11 | TimeLine( QWidget *parent = 0, const char *name = 0 ); |
12 | virtual ~TimeLine(); | 12 | virtual ~TimeLine(); |
13 | 13 | ||
14 | void setDateRange( const QDateTime &start, const QDateTime &end ); | 14 | void setDateRange( const QDateTime &start, const QDateTime &end ); |
15 | 15 | ||
16 | public slots: | 16 | public slots: |
17 | void setContentsPos( int pos ); | 17 | void setContentsPos( int pos ); |
18 | 18 | ||
19 | protected: | 19 | protected: |
20 | void drawContents(QPainter* p, int cx, int cy, int cw, int ch); | 20 | void drawContents(QPainter* p, int cx, int cy, int cw, int ch); |
21 | 21 | ||
22 | private: | 22 | private: |
23 | QDateTime mStartDate; | 23 | QDateTime mStartDate; |
24 | QDateTime mEndDate; | 24 | QDateTime mEndDate; |
25 | 25 | ||
26 | int mPixelWidth; | 26 | int mPixelWidth; |
27 | int mDaySpacing; | 27 | int mDaySpacing; |
28 | int mDayOffset; | 28 | int mDayOffset; |
29 | int mSecsPerPixel; | 29 | int mSecsPerPixel; |
30 | }; | 30 | }; |
31 | 31 | ||
32 | #endif | 32 | #endif |
33 | 33 | ||