From kde-commits Sun Mar 02 21:12:41 2008 From: Ariya Hidayat Date: Sun, 02 Mar 2008 21:12:41 +0000 To: kde-commits Subject: koffice/kspread/ui Message-Id: <1204492361.777776.14547.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120449237427555 SVN commit 781435 by ariya: fix spelling mistakes M +2 -2 Border.cpp M +1 -1 Canvas.cpp M +4 -4 CellView.cpp M +2 -2 CellView.h M +4 -4 DefaultTool.cpp M +3 -3 Editors.cpp M +3 -3 View.cpp --- trunk/koffice/kspread/ui/Border.cpp #781434:781435 @@ -449,7 +449,7 @@ m_iResizePos = mouseY; - // Dont make the row have a height < 2 pixel. + // Don't make the row have a height < 2 pixel. double y = m_pView->zoomHandler()->zoomItY( sheet->rowPosition( m_iResizedRow ) - m_pCanvas->yOffset() ); if ( m_iResizePos < y + 2 ) m_iResizePos = (int) y; @@ -1136,7 +1136,7 @@ else m_iResizePos = mouseX; - // Dont make the column have a width < 2 pixels. + // Don't make the column have a width < 2 pixels. double x = m_pView->zoomHandler()->zoomItX( sheet->columnPosition( m_iResizedColumn ) - m_pCanvas->xOffset() ); if ( sheet->layoutDirection() == Qt::RightToLeft ) --- trunk/koffice/kspread/ui/Canvas.cpp #781434:781435 @@ -711,7 +711,7 @@ d->toolProxy->keyPressEvent( event ); if ( event->isAccepted() ) return; - // Dont eat accelerators + // Don't eat accelerators if ( !( event->modifiers() & ( Qt::AltModifier | Qt::ControlModifier ) ) ) event->accept(); } --- trunk/koffice/kspread/ui/CellView.cpp #781434:781435 @@ -1860,14 +1860,14 @@ const QFontMetricsF fontMetrics(font, sheetView->paintDevice()); // Then calculate text dimensions, i.e. d->textWidth and d->textHeight, - // and check wether the text fits into the cell dimension by the way. + // and check whether the text fits into the cell dimension by the way. d->calculateTextSize(font, fontMetrics); // Obscure horizontal cells, if necessary. if (!d->fittingWidth) { obscureHorizontalCells(sheetView, cell); - // Recalculate the text dimensions and check wether the text fits. + // Recalculate the text dimensions and check whether the text fits. d->calculateTextSize(font, fontMetrics); } @@ -1875,7 +1875,7 @@ if (!d->fittingHeight) { obscureVerticalCells(sheetView, cell); - // Recalculate the text dimensions and check wether the text fits. + // Recalculate the text dimensions and check whether the text fits. d->calculateTextSize(font, fontMetrics); } @@ -1885,7 +1885,7 @@ // Truncate the output text. d->displayText = textDisplaying(fontMetrics, cell); // d->truncateText(font, fontMetrics); -// // Recalculate the text dimensions and check wether the text fits. +// // Recalculate the text dimensions and check whether the text fits. // d->calculateTextSize(font, fontMetrics); } --- trunk/koffice/kspread/ui/CellView.h #781434:781435 @@ -210,7 +210,7 @@ /** * \ingroup Layout - * Checks, wether horizontal neighbours could be obscured + * Checks, whether horizontal neighbours could be obscured * and does so, if necessary. * * \internal Called from makeLayout(). @@ -219,7 +219,7 @@ /** * \ingroup Layout - * Checks, wether vertical neighbours could be obscured + * Checks, whether vertical neighbours could be obscured * and does so, if necessary. * * \internal Called from makeLayout(). --- trunk/koffice/kspread/ui/DefaultTool.cpp #781434:781435 @@ -249,7 +249,7 @@ switch (event->button()) { case Qt::LeftButton: - // Check, wether a filter button was hit. + // Check, whether a filter button was hit. { QPointF p1(xpos, ypos); p1 -= QPointF( d->canvas->xOffset(), d->canvas->yOffset() ); @@ -370,7 +370,7 @@ void DefaultTool::mouseMoveEvent( KoPointerEvent* event ) { - // Dont allow modifications, if document is readonly. Selecting is no modification + // Don't allow modifications, if document is readonly. Selecting is no modification if ( (!d->canvas->view()->doc()->isReadWrite()) && (d->mouseAction!=Private::Mark)) return; @@ -478,7 +478,7 @@ d->anchor = anchor; } - // Test wether mouse is over the Selection.handle + // Test whether mouse is over the Selection.handle const QRectF selectionHandle = d->canvas->view()->selection()->selectionHandleArea(d->canvas->view()->zoomHandler()); if ( selectionHandle.contains( QPointF( position.x(), position.y() ) ) ) { @@ -538,7 +538,7 @@ if ( !sheet || d->canvas->formatKeyPress( event ) ) return; - // Dont handle the remaining special keys. + // Don't handle the remaining special keys. if ( event->modifiers() & ( Qt::AltModifier | Qt::ControlModifier ) && (event->key() != Qt::Key_Down) && (event->key() != Qt::Key_Up) && --- trunk/koffice/kspread/ui/Editors.cpp #781434:781435 @@ -1336,7 +1336,7 @@ m_pView->canvasWidget()->setFocus(); const QString text = this->text(); - // check wether an already existing named area was entered + // check whether an already existing named area was entered Region region = m_pView->doc()->namedAreaManager()->namedArea(text); if (region.isValid()) { @@ -1344,7 +1344,7 @@ return true; } - // check wether a valid cell region was entered + // check whether a valid cell region was entered region = Region(text, m_pView->doc()->map(), m_pView->activeSheet()); if (region.isValid()) { @@ -1493,7 +1493,7 @@ void EditWidget::keyPressEvent ( QKeyEvent* _ev ) { - // Dont handle special keys and accelerators, except Enter ones + // Don't handle special keys and accelerators, except Enter ones if (( ( _ev->modifiers() & ( Qt::AltModifier | Qt::ControlModifier ) ) || ( _ev->modifiers() & Qt::ShiftModifier ) || ( _ev->key() == Qt::Key_Shift ) --- trunk/koffice/kspread/ui/View.cpp #781434:781435 @@ -3171,7 +3171,7 @@ manipulator->add( *selection() ); manipulator->execute(); - // Dont leave the focus in the toolbars combo box ... + // Don't leave the focus in the toolbars combo box ... if ( d->canvas->editor() ) { const Style style = Cell( d->activeSheet, selection()->marker() ).style(); @@ -3339,7 +3339,7 @@ manipulator->add( *selection() ); manipulator->execute(); - // Dont leave the focus in the toolbars combo box ... + // Don't leave the focus in the toolbars combo box ... if ( d->canvas->editor() ) { Cell cell( d->activeSheet, d->selection->marker() ); @@ -5187,7 +5187,7 @@ void View::keyPressEvent ( QKeyEvent* _ev ) { - // Dont eat accelerators + // Don't eat accelerators if ( _ev->modifiers() & ( Qt::AltModifier | Qt::ControlModifier ) ) { if ( _ev->modifiers() & ( Qt::ControlModifier ) )