summaryrefslogtreecommitdiffstats
path: root/kspread/kspread_canvas.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:12:30 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:12:30 -0600
commit11191ef0b9908604d1d7aaca382b011ef22c454c (patch)
treed38f0ccd8bfcc9756f5cfc42fb2ad1dad351e6aa /kspread/kspread_canvas.cc
parentc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (diff)
downloadkoffice-11191ef0b9908604d1d7aaca382b011ef22c454c.tar.gz
koffice-11191ef0b9908604d1d7aaca382b011ef22c454c.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'kspread/kspread_canvas.cc')
-rw-r--r--kspread/kspread_canvas.cc46
1 files changed, 23 insertions, 23 deletions
diff --git a/kspread/kspread_canvas.cc b/kspread/kspread_canvas.cc
index 3f482e27..6b7e191f 100644
--- a/kspread/kspread_canvas.cc
+++ b/kspread/kspread_canvas.cc
@@ -547,7 +547,7 @@ void Canvas::validateSelection()
ypos = sheet->dblRowPos( moveY );
}
//d->validationInfo->setGeometry( 3, y + 3, len + 2, hei + 2 );
- d->validationInfo->tqsetAlignment( TQt::AlignVCenter );
+ d->validationInfo->setAlignment( TQt::AlignVCenter );
TQPainter painter;
painter.begin( this );
int len = 0;
@@ -1816,7 +1816,7 @@ void Canvas::dropEvent( TQDropEvent * _ev )
}
- b = _ev->tqencodedData( TextDrag::selectionMimeType() );
+ b = _ev->encodedData( TextDrag::selectionMimeType() );
sheet->paste( b, TQRect( col, row, 1, 1 ), makeUndo );
if ( _ev->source() == this )
@@ -3440,22 +3440,22 @@ void Canvas::resizeObject( ModifyType _modType, const KoPoint & point, bool keep
if ( _modType == MT_RESIZE_UP || _modType == MT_RESIZE_LU || _modType == MT_RESIZE_RU )
{
top = true;
-// snaptqStatus |= KoGuides::SNAP_HORIZ;
+// snapStatus |= KoGuides::SNAP_HORIZ;
}
if ( _modType == MT_RESIZE_DN || _modType == MT_RESIZE_LD || _modType == MT_RESIZE_RD )
{
bottom = true;
-// snaptqStatus |= KoGuides::SNAP_HORIZ;
+// snapStatus |= KoGuides::SNAP_HORIZ;
}
if ( _modType == MT_RESIZE_LF || _modType == MT_RESIZE_LU || _modType == MT_RESIZE_LD )
{
left = true;
-// snaptqStatus |= KoGuides::SNAP_VERT;
+// snapStatus |= KoGuides::SNAP_VERT;
}
if ( _modType == MT_RESIZE_RT || _modType == MT_RESIZE_RU || _modType == MT_RESIZE_RD )
{
right = true;
-// snaptqStatus |= KoGuides::SNAP_VERT;
+// snapStatus |= KoGuides::SNAP_VERT;
}
double newLeft = objRect.left();
@@ -3572,7 +3572,7 @@ void Canvas::resizeObject( ModifyType _modType, const KoPoint & point, bool keep
// {
// sp.setY( rect.bottom() );
// }
-// m_gl.repaintSnapping( sp, snaptqStatus );
+// m_gl.repaintSnapping( sp, snapStatus );
// }
tqrepaint( oldBoundingRect );
@@ -4064,7 +4064,7 @@ void Canvas::paintUpdates()
}
else
{
- matrix = painter.tqworldMatrix();
+ matrix = painter.worldMatrix();
}
@@ -4656,7 +4656,7 @@ VBorder::~VBorder()
delete m_scrollTimer;
}
-TQSize VBorder::tqsizeHint() const
+TQSize VBorder::sizeHint() const
{
return TQSize( 40, 10 );
}
@@ -5057,7 +5057,7 @@ void VBorder::paintSizeIndicator( int mouseY, bool firstTime )
else
m_lSize->setGeometry( 3, y + 3, len + 2,hei + 2 );
- m_lSize->tqsetAlignment( TQt::AlignVCenter );
+ m_lSize->setAlignment( TQt::AlignVCenter );
m_lSize->setText( tmpSize );
m_lSize->setPalette( TQToolTip::palette() );
m_lSize->show();
@@ -5095,7 +5095,7 @@ void VBorder::paintEvent( TQPaintEvent* _ev )
TQColor highlightColor = View::highlightColor();
TQPen pen( TQt::black, 1 );
painter.setPen( pen );
- // painter.setBackgroundColor( tqcolorGroup().base() );
+ // painter.setBackgroundColor( colorGroup().base() );
// painter.eraseRect( _ev->rect() );
@@ -5146,7 +5146,7 @@ void VBorder::paintEvent( TQPaintEvent* _ev )
}
else
{
- TQColor c = tqcolorGroup().background();
+ TQColor c = colorGroup().background();
TQBrush fill( c );
qDrawPlainRect ( &painter, 0, zoomedYPos, width, height+1, c.dark(150),
1, &fill );
@@ -5156,10 +5156,10 @@ void VBorder::paintEvent( TQPaintEvent* _ev )
// Reset painter
painter.setFont( normalFont );
- painter.setPen( tqcolorGroup().text() );
+ painter.setPen( colorGroup().text() );
if ( selected )
- painter.setPen( tqcolorGroup().highlightedText() );
+ painter.setPen( colorGroup().highlightedText() );
else if ( highlighted )
painter.setFont( boldFont );
@@ -5212,7 +5212,7 @@ HBorder::~HBorder()
delete m_scrollTimer;
}
-TQSize HBorder::tqsizeHint() const
+TQSize HBorder::sizeHint() const
{
return TQSize( 40, 10 );
}
@@ -5758,7 +5758,7 @@ void HBorder::paintSizeIndicator( int mouseX, bool firstTime )
else
m_lSize->setGeometry( x + 3, 3, len + 2, hei + 2 );
- m_lSize->tqsetAlignment( TQt::AlignVCenter );
+ m_lSize->setAlignment( TQt::AlignVCenter );
m_lSize->setText( tmpSize );
m_lSize->setPalette( TQToolTip::palette() );
m_lSize->show();
@@ -5866,7 +5866,7 @@ void HBorder::paintEvent( TQPaintEvent* _ev )
}
else
{
- TQColor c = tqcolorGroup().background();
+ TQColor c = colorGroup().background();
TQBrush fill( c );
qDrawPlainRect ( &painter, zoomedXPos, 0, width+1, height, c.dark(150),
1, &fill );
@@ -5874,10 +5874,10 @@ void HBorder::paintEvent( TQPaintEvent* _ev )
// Reset painter
painter.setFont( normalFont );
- painter.setPen( tqcolorGroup().text() );
+ painter.setPen( colorGroup().text() );
if ( selected )
- painter.setPen( tqcolorGroup().highlightedText() );
+ painter.setPen( colorGroup().highlightedText() );
else if ( highlighted )
painter.setFont( boldFont );
if ( !m_pView->activeSheet()->getShowColumnNumber() )
@@ -5929,7 +5929,7 @@ void HBorder::paintEvent( TQPaintEvent* _ev )
}
else
{
- TQColor c = tqcolorGroup().background();
+ TQColor c = colorGroup().background();
TQBrush fill( c );
qDrawPlainRect ( &painter, zoomedXPos, 0, width+1, height, c.dark(150),
1, &fill );
@@ -5937,10 +5937,10 @@ void HBorder::paintEvent( TQPaintEvent* _ev )
// Reset painter
painter.setFont( normalFont );
- painter.setPen( tqcolorGroup().text() );
+ painter.setPen( colorGroup().text() );
if ( selected )
- painter.setPen( tqcolorGroup().highlightedText() );
+ painter.setPen( colorGroup().highlightedText() );
else if ( highlighted )
painter.setFont( boldFont );
if ( !m_pView->activeSheet()->getShowColumnNumber() )
@@ -5991,7 +5991,7 @@ ToolTip::ToolTip( Canvas* canvas )
// this is a hack of course, because it's not available from TQToolTip
TQLabel *tip_findLabel()
{
- TQWidgetList *list = TQApplication::tqallWidgets();
+ TQWidgetList *list = TQApplication::allWidgets();
TQWidgetListIt it( *list );
TQWidget * w;
while ( (w=it.current()) != 0 )