summaryrefslogtreecommitdiffabout
path: root/korganizer/lineview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/lineview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/lineview.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/korganizer/lineview.cpp b/korganizer/lineview.cpp
index f1ff29f..e72e41c 100644
--- a/korganizer/lineview.cpp
+++ b/korganizer/lineview.cpp
@@ -1,56 +1,55 @@
#include <qpainter.h>
#include <kdebug.h>
#include "koprefs.h"
#include "lineview.h"
-#include "lineview.moc"
LineView::LineView( QWidget *parent, const char *name ) :
QScrollView( parent, name )
{
mPixelWidth = 1000;
mLines.setAutoDelete( true );
resizeContents( mPixelWidth, contentsHeight() );
viewport()->setBackgroundColor(KOPrefs::instance()->mAgendaBgColor);
}
LineView::~LineView()
{
}
int LineView::pixelWidth()
{
return mPixelWidth;
}
void LineView::addLine( int start, int end )
{
int count = mLines.count();
if( start < 0 ) start = 0;
if( end > mPixelWidth) end = mPixelWidth;
kdDebug() << "LineView::addLine() col: " << count << " start: " << start
<< " end: " << end << endl;
mLines.append( new Line( count, start, end ) );
}
void LineView::clear()
{
mLines.clear();
update();
}
void LineView::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
{
// kdDebug() << "LineView::drawContents()" << endl;
int mGridSpacingX = 10;
int mGridSpacingY = 20;