diff options
Diffstat (limited to 'src/svnfrontend/opencontextmenu.cpp')
-rw-r--r-- | src/svnfrontend/opencontextmenu.cpp | 18 |
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 ); |