-rw-r--r-- | korganizer/lineview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/lineview.cpp b/korganizer/lineview.cpp index e72e41c..012455e 100644 --- a/korganizer/lineview.cpp +++ b/korganizer/lineview.cpp | |||
@@ -1,42 +1,42 @@ | |||
1 | #include <qpainter.h> | 1 | #include <qpainter.h> |
2 | 2 | ||
3 | #include <kdebug.h> | 3 | #include <kdebug.h> |
4 | 4 | ||
5 | #include "koprefs.h" | 5 | #include "koprefs.h" |
6 | 6 | ||
7 | #include "lineview.h" | 7 | #include "lineview.h" |
8 | 8 | ||
9 | LineView::LineView( QWidget *parent, const char *name ) : | 9 | LineView::LineView( QWidget *parent, const char *name ) : |
10 | QScrollView( parent, name ) | 10 | Q3ScrollView( parent, name ) |
11 | { | 11 | { |
12 | mPixelWidth = 1000; | 12 | mPixelWidth = 1000; |
13 | 13 | ||
14 | mLines.setAutoDelete( true ); | 14 | mLines.setAutoDelete( true ); |
15 | 15 | ||
16 | resizeContents( mPixelWidth, contentsHeight() ); | 16 | resizeContents( mPixelWidth, contentsHeight() ); |
17 | 17 | ||
18 | viewport()->setBackgroundColor(KOPrefs::instance()->mAgendaBgColor); | 18 | viewport()->setBackgroundColor(KOPrefs::instance()->mAgendaBgColor); |
19 | } | 19 | } |
20 | 20 | ||
21 | LineView::~LineView() | 21 | LineView::~LineView() |
22 | { | 22 | { |
23 | } | 23 | } |
24 | 24 | ||
25 | int LineView::pixelWidth() | 25 | int LineView::pixelWidth() |
26 | { | 26 | { |
27 | return mPixelWidth; | 27 | return mPixelWidth; |
28 | } | 28 | } |
29 | 29 | ||
30 | void LineView::addLine( int start, int end ) | 30 | void LineView::addLine( int start, int end ) |
31 | { | 31 | { |
32 | int count = mLines.count(); | 32 | int count = mLines.count(); |
33 | 33 | ||
34 | if( start < 0 ) start = 0; | 34 | if( start < 0 ) start = 0; |
35 | if( end > mPixelWidth) end = mPixelWidth; | 35 | if( end > mPixelWidth) end = mPixelWidth; |
36 | 36 | ||
37 | kdDebug() << "LineView::addLine() col: " << count << " start: " << start | 37 | kdDebug() << "LineView::addLine() col: " << count << " start: " << start |
38 | << " end: " << end << endl; | 38 | << " end: " << end << endl; |
39 | 39 | ||
40 | mLines.append( new Line( count, start, end ) ); | 40 | mLines.append( new Line( count, start, end ) ); |
41 | } | 41 | } |
42 | 42 | ||