From c1ef065782051db96cdfd32cf55be6408c2a9d22 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:57:14 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit bab171b2a7d7f36e2d5dd510df80fc8cb4a6b06f. --- src/itemview.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/itemview.cpp') diff --git a/src/itemview.cpp b/src/itemview.cpp index 9370e1b..fd2d6af 100644 --- a/src/itemview.cpp +++ b/src/itemview.cpp @@ -86,8 +86,8 @@ ItemView::ItemView( ItemDocument * itemDocument, ViewContainer *viewContainer, u setXMLFile( "ktechlabitemviewui.rc" ); m_pUpdateStatusTmr = new TQTimer(this); - connect( m_pUpdateStatusTmr, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateStatus()) ); - connect( this, TQT_SIGNAL(viewUnfocused()), this, TQT_SLOT(stopUpdatingStatus()) ); + connect( m_pUpdateStatusTmr, TQT_SIGNAL(timeout()), this, TQT_SLOT(updatetqStatus()) ); + connect( this, TQT_SIGNAL(viewUnfocused()), this, TQT_SLOT(stopUpdatingtqStatus()) ); p_itemDocument = itemDocument; m_zoomLevel = 1.; @@ -198,7 +198,7 @@ void ItemView::dropEvent( TQDropEvent *event ) return; TQString text; - TQDataStream stream( event->encodedData(event->format()), IO_ReadOnly ); + TQDataStream stream( event->tqencodedData(event->format()), IO_ReadOnly ); stream >> text; TQPoint position = event->pos(); @@ -278,7 +278,7 @@ void ItemView::contentsMouseMoveEvent( TQMouseEvent *e ) p_itemDocument->m_cmManager->mouseMoveEvent( EventInfo( this, e ) ); if ( !m_pUpdateStatusTmr->isActive() ) - startUpdatingStatus(); + startUpdatingtqStatus(); } @@ -306,7 +306,7 @@ void ItemView::contentsWheelEvent( TQWheelEvent *e ) void ItemView::dragEnterEvent( TQDragEnterEvent *event ) { - startUpdatingStatus(); + startUpdatingtqStatus(); KURL::List urls; if ( KURLDrag::decode( event, urls ) ) @@ -321,14 +321,14 @@ void ItemView::dragEnterEvent( TQDragEnterEvent *event ) void ItemView::enterEvent( TQEvent * e ) { Q_UNUSED(e); - startUpdatingStatus(); + startUpdatingtqStatus(); } void ItemView::leaveEvent( TQEvent * e ) { Q_UNUSED(e); - stopUpdatingStatus(); + stopUpdatingtqStatus(); // Cleanup setCursor(TQt::ArrowCursor); @@ -337,7 +337,7 @@ void ItemView::leaveEvent( TQEvent * e ) p_ktechlab->slotChangeStatusbar(TQString()); if ( p_itemDocument ) - p_itemDocument->m_canvasTip->setVisible(false); + p_itemDocument->m_canvasTip->tqsetVisible(false); } @@ -347,24 +347,24 @@ void ItemView::slotUpdateConfiguration() m_CVBEditor->setEraseColor( TQt::white ); if ( m_pUpdateStatusTmr->isActive() ) - startUpdatingStatus(); + startUpdatingtqStatus(); } -void ItemView::startUpdatingStatus() +void ItemView::startUpdatingtqStatus() { m_pUpdateStatusTmr->stop(); m_pUpdateStatusTmr->start( int(1000./KTLConfig::refreshRate()) ); } -void ItemView::stopUpdatingStatus() +void ItemView::stopUpdatingtqStatus() { m_pUpdateStatusTmr->stop(); } -void ItemView::updateStatus() +void ItemView::updatetqStatus() { TQPoint pos = (m_CVBEditor->mapFromGlobal( TQCursor::pos() ) + TQPoint( m_CVBEditor->contentsX(), m_CVBEditor->contentsY() )) / zoomLevel(); @@ -456,7 +456,7 @@ void ItemView::updateStatus() if (p_ktechlab) p_ktechlab->slotChangeStatusbar(statusbar); - canvasTip->setVisible(displayTip); + canvasTip->tqsetVisible(displayTip); } //END class ItemView -- cgit v1.2.1