diff options
Diffstat (limited to 'kdgantt/KDGanttViewSubwidgets.cpp')
-rw-r--r-- | kdgantt/KDGanttViewSubwidgets.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kdgantt/KDGanttViewSubwidgets.cpp b/kdgantt/KDGanttViewSubwidgets.cpp index 43413f85..3d3c8198 100644 --- a/kdgantt/KDGanttViewSubwidgets.cpp +++ b/kdgantt/KDGanttViewSubwidgets.cpp @@ -89,7 +89,7 @@ void KDTimeTableWidget::clearTaskLinks() while (it.current()) { delete it.current(); } - + } void KDTimeTableWidget::resetWidth( int wid ) @@ -620,7 +620,7 @@ void KDTimeTableWidget::updateMyContent() maximumComputedGridHeight = hei; // compute the background interval lines myGanttView->myTimeHeader->computeIntervals( hei ); - //computeQt::VerticalGrid and column color + //compute VerticalGrid and column color computeVerticalGrid(); } computeTaskLinks(); @@ -856,8 +856,8 @@ void KDTimeHeaderWidget::checkWidth( int wid ) ( myMinimumWidth > mySizeHint && myMinimumWidth < (width() - myGridMinorWidth )) ) computeTicks(); - - // Update (horizontal) scrollbar, + + // Update (horizontal) scrollbar, // We probably come from an external resize and then we must // calculate on basis of myCanvasView. // (NOTE: we have disconnected the auto TQScrollView scrollbar update) @@ -2377,7 +2377,7 @@ void KDTimeHeaderWidget::centerDateTime( const TQDateTime& center ) { moveTimeLineTo(getCoordX( center )-(myGanttView->myCanvasView->viewport()->width() /2)); // tqDebug("centerDateTime %s %d %d", center.toString().latin1(),getCoordX( center ),(myGanttView->myCanvasView->viewport()->width() /2) ); - + } @@ -2850,7 +2850,7 @@ void KDListView::drawAllContents(TQPainter * p, int cx, int cy, int cw, int ch) for (; child; child = child->nextSibling()) { ypos = buildDrawables(drawables, level, ypos, child, cy, cy+ch); } - + p->setFont( font() ); TQPtrListIterator<KDListView::DrawableItem> it(drawables); @@ -2935,7 +2935,7 @@ void KDListView::drawAllContents(TQPainter * p, int cx, int cy, int cw, int ch) // do any children of current need to be painted? /* FIXME: painting branches doesn't work for some reason... - if ( ih != ith && + if ( ih != ith && rootIsDecorated() && current->y + ith > cy && current->y + ih < cy + ch && @@ -3221,7 +3221,7 @@ KDGanttCanvasView::KDGanttCanvasView( KDGanttView* sender,TQCanvas* canvas, TQWi onItem->setItemEnabled( 3, false ); myMyContentsHeight = 0; _showItemAddPopupMenu = false; - + TQObject *scrollViewTimer = child( "scrollview scrollbar timer", TQTIMER_OBJECT_NAME_STRING, false ); Q_ASSERT( scrollViewTimer ); if ( scrollViewTimer ) { @@ -3229,7 +3229,7 @@ KDGanttCanvasView::KDGanttCanvasView( KDGanttView* sender,TQCanvas* canvas, TQWi } // If they needed a scrollbar timer in scrollview... connect( &scrollBarTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(myUpdateScrollBars() ) ); - + myScrollTimer = new TQTimer( this, "myScrollTimer" ); connect( myScrollTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotScrollTimer() ) ); autoScrollEnabled = false; @@ -3304,9 +3304,9 @@ void KDGanttCanvasView::setMyContentsHeight( int hei ) // Then the new scrollbar maxValue is in myTimeHeader. void KDGanttCanvasView::updateHorScrollBar() { //tqDebug("horizontalScrollBar max=%d, myTimeHeaderScroll=%d", horizontalScrollBar()->maxValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->value()); - + horizontalScrollBar()->setRange(mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->minValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->maxValue()); - + } void KDGanttCanvasView::cutItem( KDGanttViewItem* item ) @@ -3537,7 +3537,7 @@ void KDGanttCanvasView::contentsMousePressEvent ( TQMouseEvent * e ) currentItem = getItem(*it); if (! currentItem->enabled() ) { currentItem = 0; - } else if (linkItemsEnabled && + } else if (linkItemsEnabled && !currentItem->isMyTextCanvas(*it)) { fromArea = getItemArea(currentItem, e->pos().x()); if (fromArea > 0) { @@ -3807,7 +3807,7 @@ KDGanttViewTaskLink* KDGanttCanvasView::getLink(TQCanvasItem* it) } void KDGanttCanvasView::slotScrollTimer() { - int mx = mousePos.x(); + int mx = mousePos.x(); int my = mousePos.y(); int dx = 0; int dy = 0; @@ -3819,7 +3819,7 @@ void KDGanttCanvasView::slotScrollTimer() { dy = -5; else if (my > visibleHeight()) dy = TQMIN(5, verticalScrollBar()->maxValue()-verticalScrollBar()->value()); - + if (dx != 0 || dy != 0) scrollBy(dx, dy); } |