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/lineview.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/lineview.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/korganizer/lineview.h b/korganizer/lineview.h index aa34dbc..52ae9cf 100644 --- a/korganizer/lineview.h +++ b/korganizer/lineview.h | |||
@@ -1,36 +1,36 @@ | |||
1 | #ifndef LINEVIEW_H | 1 | #ifndef LINEVIEW_H |
2 | #define LINEVIEW_H | 2 | #define LINEVIEW_H |
3 | 3 | ||
4 | #include <qscrollview.h> | 4 | #include <q3scrollview.h> |
5 | #include <qptrlist.h> | 5 | #include <q3ptrlist.h> |
6 | 6 | ||
7 | class LineView : public QScrollView | 7 | class LineView : public Q3ScrollView |
8 | { | 8 | { |
9 | Q_OBJECT | 9 | Q_OBJECT |
10 | public: | 10 | public: |
11 | LineView( QWidget *parent = 0, const char *name = 0 ); | 11 | LineView( QWidget *parent = 0, const char *name = 0 ); |
12 | virtual ~LineView(); | 12 | virtual ~LineView(); |
13 | 13 | ||
14 | int pixelWidth(); | 14 | int pixelWidth(); |
15 | 15 | ||
16 | void addLine( int start, int end ); | 16 | void addLine( int start, int end ); |
17 | 17 | ||
18 | void clear(); | 18 | void clear(); |
19 | 19 | ||
20 | protected: | 20 | protected: |
21 | void drawContents(QPainter* p, int cx, int cy, int cw, int ch); | 21 | void drawContents(QPainter* p, int cx, int cy, int cw, int ch); |
22 | 22 | ||
23 | private: | 23 | private: |
24 | struct Line { | 24 | struct Line { |
25 | Line( int c, int s, int e ) : column( c ), start( s ), end( e ) {} | 25 | Line( int c, int s, int e ) : column( c ), start( s ), end( e ) {} |
26 | int column; | 26 | int column; |
27 | int start; | 27 | int start; |
28 | int end; | 28 | int end; |
29 | }; | 29 | }; |
30 | 30 | ||
31 | QPtrList<Line> mLines; | 31 | Q3PtrList<Line> mLines; |
32 | int mPixelWidth; | 32 | int mPixelWidth; |
33 | }; | 33 | }; |
34 | 34 | ||
35 | #endif | 35 | #endif |
36 | 36 | ||