diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-03-05 05:03:32 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-03-05 05:38:11 +0100 |
commit | 5254056d0fbc4d05dde43c7ad44c085decf8569d (patch) | |
tree | 7f90c18f437c297fe12cc19dc96914e2b8cace4a /kdgantt | |
parent | 0a817ecfcd6e71f30c1261d43cb4d019557dd878 (diff) | |
download | koffice-5254056d0fbc4d05dde43c7ad44c085decf8569d.tar.gz koffice-5254056d0fbc4d05dde43c7ad44c085decf8569d.zip |
Fix incorrectly renamed strings
(cherry picked from commit f9f32cc93e35d51abba0fb9f26afc211c60a5ea4)
Diffstat (limited to 'kdgantt')
-rw-r--r-- | kdgantt/KDGanttMinimizeSplitter.cpp | 2 | ||||
-rw-r--r-- | kdgantt/KDGanttViewSubwidgets.cpp | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/kdgantt/KDGanttMinimizeSplitter.cpp b/kdgantt/KDGanttMinimizeSplitter.cpp index a893eeb2..14967980 100644 --- a/kdgantt/KDGanttMinimizeSplitter.cpp +++ b/kdgantt/KDGanttMinimizeSplitter.cpp @@ -426,7 +426,7 @@ void KDGanttMinimizeSplitter::init() \brief the orientation of the splitter By default the orientation is horizontal (the widgets are side by side). - The possible orientations are TQt:Vertical and Qt::Horizontal (the default). + The possible orientations are Qt::Vertical and Qt::Horizontal (the default). */ void KDGanttMinimizeSplitter::setOrientation( Qt::Orientation o ) { 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); } |