diff options
Diffstat (limited to 'kgantt/kgantt/xQGanttBarView.cpp')
-rw-r--r-- | kgantt/kgantt/xQGanttBarView.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kgantt/kgantt/xQGanttBarView.cpp b/kgantt/kgantt/xQGanttBarView.cpp index dc9314996..f85fea6b4 100644 --- a/kgantt/kgantt/xQGanttBarView.cpp +++ b/kgantt/kgantt/xQGanttBarView.cpp @@ -100,7 +100,7 @@ xQGanttBarView::drawHeader() TQDate t = startDate.addDays(-startDate.dayOfWeek()+1); - tmp = _toplevelitem->getStart().secsTo(t)/60; + tmp = _toplevelitem->getStart().secsTo(TQDateTime(t))/60; a = _viewport->screenX(tmp) - contentsX(); p.fillRect(a, top, (int) (5. * dayWidth), height, TQBrush(TQColor(240,240,240))); @@ -110,7 +110,7 @@ xQGanttBarView::drawHeader() t = startDate.addDays(-startDate.day()+1); - tmp = _toplevelitem->getStart().secsTo(t)/60; + tmp = _toplevelitem->getStart().secsTo(TQDateTime(t))/60; a = _viewport->screenX(tmp) - contentsX(); e = t.daysInMonth(); @@ -124,7 +124,7 @@ xQGanttBarView::drawHeader() // draw snapgrid for first month - tmp = _toplevelitem->getStart().secsTo(startDate)/60; + tmp = _toplevelitem->getStart().secsTo(TQDateTime(startDate))/60; a = _viewport->screenX(tmp) - contentsX()+1; double dx = (double) ((_viewport->screenX(_viewport->_snapgrid*1000) - _viewport->screenX(0))/1000.); @@ -143,7 +143,7 @@ xQGanttBarView::drawHeader() for(int i=0; i<end; i++, t = t.addDays(1) ) { - tmp = _toplevelitem->getStart().secsTo(t)/60; + tmp = _toplevelitem->getStart().secsTo(TQDateTime(t))/60; a = _viewport->screenX(tmp) - contentsX(); p.setPen( TQPen(TQColor(black)) ); |