8 #include "xQGanttListView.h"
11 #include <tdelocale.h>
14 const char * name, WFlags f)
15 : TQScrollView(parent,name,f)
18 _toplevelitem = toplevelitem;
20 setFrameStyle(TQFrame::Sunken);
23 _headerBackBrush = TQBrush(TQColor(230,230,230));
25 setMargins( 1, TOPMARGIN , 1, 1 );
27 setVScrollBarMode( AlwaysOff );
32 viewport()->setBackgroundColor(TQColor(white));
45 xQGanttListView::drawHeader()
51 p.setPen( TQPen(TQColor(black)) );
52 p.fillRect(0,0,width(),TOPMARGIN, _headerBackBrush );
54 p.drawText(5, ( int)(0.8 * TOPMARGIN), i18n( "Items"));
61 xQGanttListView::contentsMoved( int x, int y)
64 printf( "xQGanttListView::contentsMoved(%d,%d)\n", x, y);
65 setContentsPos( 0, y );
71 xQGanttListView::paintEvent(TQPaintEvent * )
75 #include "xQGanttListView.moc"
GanttListViewPort Widget.
xQGanttListView(KGanttItem *toplevelitem, TQWidget *parent=0, const char *name=0, WFlags f=0) Constructor.
~xQGanttListView() Destructor.
|