summaryrefslogtreecommitdiffstats
path: root/src/itemview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemview.cpp')
-rw-r--r--src/itemview.cpp26
1 files changed, 13 insertions, 13 deletions
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