summaryrefslogtreecommitdiffabout
path: root/korganizer/lineview.cpp
Unidiff
Diffstat (limited to 'korganizer/lineview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/lineview.cpp2
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
9LineView::LineView( QWidget *parent, const char *name ) : 9LineView::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
21LineView::~LineView() 21LineView::~LineView()
22{ 22{
23} 23}
24 24
25int LineView::pixelWidth() 25int LineView::pixelWidth()
26{ 26{
27 return mPixelWidth; 27 return mPixelWidth;
28} 28}
29 29
30void LineView::addLine( int start, int end ) 30void 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