summaryrefslogtreecommitdiffstats
path: root/karbon/vtoolcontroller.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /karbon/vtoolcontroller.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karbon/vtoolcontroller.cc')
-rw-r--r--karbon/vtoolcontroller.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/karbon/vtoolcontroller.cc b/karbon/vtoolcontroller.cc
index 4ce02c79..902deb78 100644
--- a/karbon/vtoolcontroller.cc
+++ b/karbon/vtoolcontroller.cc
@@ -65,7 +65,7 @@ VToolController::setCurrentTool( VTool *tool )
void
VToolController::registerTool( VTool *tool )
{
- if( !m_tools.find( tool->name() ) )
+ if( !m_tools.tqfind( tool->name() ) )
m_tools.insert( tool->name(), tool );
//kdDebug(38000) << "active tool : " << m_currentTool->name() << endl;
}
@@ -74,7 +74,7 @@ void
VToolController::unregisterTool( VTool *tool )
{
// tool->name() is not valid in VTool destructor
- QDictIterator<VTool> it( m_tools );
+ TQDictIterator<VTool> it( m_tools );
for( ; it.current(); ++it )
if (it.current() == tool)
{
@@ -84,7 +84,7 @@ VToolController::unregisterTool( VTool *tool )
}
bool
-VToolController::mouseEvent( QMouseEvent* event, const KoPoint &p )
+VToolController::mouseEvent( TQMouseEvent* event, const KoPoint &p )
{
if( !m_currentTool ) {
return false;
@@ -94,7 +94,7 @@ VToolController::mouseEvent( QMouseEvent* event, const KoPoint &p )
}
bool
-VToolController::keyEvent( QEvent* event )
+VToolController::keyEvent( TQEvent* event )
{
if( !m_currentTool ) {
return false;
@@ -116,7 +116,7 @@ VToolController::setUp( KActionCollection *ac, VToolBox * toolbox )
m_toolBox = toolbox;
- QDictIterator<VTool> it( m_tools );
+ TQDictIterator<VTool> it( m_tools );
for( ; it.current(); ++it )
toolbox->registerTool( it.current() );
@@ -133,7 +133,7 @@ VToolController::resetToolBox( VToolBox * toolbox )
{
m_toolBox = toolbox;
- QDictIterator<VTool> it( m_tools );
+ TQDictIterator<VTool> it( m_tools );
for( ; it.current(); ++it )
toolbox->registerTool( it.current() );
@@ -148,10 +148,10 @@ VToolController::resetToolBox( VToolBox * toolbox )
}
VTool *
-VToolController::findTool( const QString &toolName ) const
+VToolController::findTool( const TQString &toolName ) const
{
VTool *tool = 0;
- QDictIterator<VTool> it( m_tools );
+ TQDictIterator<VTool> it( m_tools );
for( ; it.current(); ++it )
if( it.current()->name() == toolName )
return it.current();