summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/opencontextmenu.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
commitd7633c195a464e4d344ada9eea61afd10110598a (patch)
tree1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/svnfrontend/opencontextmenu.cpp
parent3fa7eb804f67b2789f128075cc2522f398640250 (diff)
downloadtdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz
tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/svnfrontend/opencontextmenu.cpp')
-rw-r--r--src/svnfrontend/opencontextmenu.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/svnfrontend/opencontextmenu.cpp b/src/svnfrontend/opencontextmenu.cpp
index 796ac22..857f02c 100644
--- a/src/svnfrontend/opencontextmenu.cpp
+++ b/src/svnfrontend/opencontextmenu.cpp
@@ -22,8 +22,8 @@
#include <krun.h>
#include <klocale.h>
-OpenContextmenu::OpenContextmenu(const KURL&aPath,const KTrader::OfferList&aList,QWidget* parent, const char* name)
- : QPopupMenu(parent, name),m_Path(aPath),m_List(aList)
+OpenContextmenu::OpenContextmenu(const KURL&aPath,const KTrader::OfferList&aList,TQWidget* tqparent, const char* name)
+ : TQPopupMenu(tqparent, name),m_Path(aPath),m_List(aList)
{
setup();
}
@@ -42,12 +42,12 @@ void OpenContextmenu::setup()
if ((*it)->noDisplay())
continue;
- QCString nam;
+ TQCString nam;
nam.setNum( id );
- QString actionName( (*it)->name().replace("&", "&&") );
+ TQString actionName( (*it)->name().tqreplace("&", "&&") );
act = new KAction( actionName, (*it)->pixmap( KIcon::Small ), 0,
- this, SLOT( slotRunService() ), this, nam.prepend( "appservice_" ) );
+ TQT_TQOBJECT(this), TQT_SLOT( slotRunService() ), TQT_TQOBJECT(this), nam.prepend( "appservice_" ) );
act->plug(this);
m_mapPopup[ id++ ] = *it;
}
@@ -55,16 +55,16 @@ void OpenContextmenu::setup()
insertSeparator( );
}
act = new KAction(i18n("Other..."),0, 0,
- this, SLOT( slotOpenWith() ),this,"openwith");
+ TQT_TQOBJECT(this), TQT_SLOT( slotOpenWith() ),TQT_TQOBJECT(this),"openwith");
act->plug(this);
}
void OpenContextmenu::slotRunService()
{
- QCString senderName = sender()->name();
- int id = senderName.mid( senderName.find( '_' ) + 1 ).toInt();
+ TQCString senderName = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name();
+ int id = senderName.mid( senderName.tqfind( '_' ) + 1 ).toInt();
- QMap<int,KService::Ptr>::Iterator it = m_mapPopup.find( id );
+ TQMap<int,KService::Ptr>::Iterator it = m_mapPopup.tqfind( id );
if ( it != m_mapPopup.end() )
{
KRun::run( **it, m_Path );