diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /konq-plugins/kuick/kuick_plugin.cpp | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/kuick/kuick_plugin.cpp')
-rw-r--r-- | konq-plugins/kuick/kuick_plugin.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/konq-plugins/kuick/kuick_plugin.cpp b/konq-plugins/kuick/kuick_plugin.cpp index 80a7cc7..772f169 100644 --- a/konq-plugins/kuick/kuick_plugin.cpp +++ b/konq-plugins/kuick/kuick_plugin.cpp @@ -30,7 +30,7 @@ #include <konq_popupmenu.h> #include <kmessagebox.h> #include <kgenericfactory.h> -#include <qobject.h> +#include <tqobject.h> #include <kio/jobclasses.h> #include <kio/job.h> #include <kurl.h> @@ -38,15 +38,15 @@ typedef KGenericFactory<KTestMenu, KonqPopupMenu> KTestMenuFactory; K_EXPORT_COMPONENT_FACTORY( libkuickplugin, KTestMenuFactory("kuick_plugin") ) -KTestMenu::KTestMenu( KonqPopupMenu *popupmenu, const char *name, const QStringList& /*list*/ ) : KonqPopupMenuPlugin( popupmenu, name) { +KTestMenu::KTestMenu( KonqPopupMenu *popupmenu, const char *name, const TQStringList& /*list*/ ) : KonqPopupMenuPlugin( popupmenu, name) { popup= popupmenu ; meta_copy_mmu = 0L; meta_move_mmu = 0L; - my_action = new KAction( "kuick_plugin", 0, this, SLOT( slotPopupMaeh( ) ), actionCollection( ), "Do some funky stuff" ); + my_action = new KAction( "kuick_plugin", 0, this, TQT_SLOT( slotPopupMaeh( ) ), actionCollection( ), "Do some funky stuff" ); addAction( my_action ); addSeparator(); //popupmenu->addMerge(); - connect( popup, SIGNAL(aboutToShow() ), this, SLOT(slotPrepareMenu( ) ) ); + connect( popup, TQT_SIGNAL(aboutToShow() ), this, TQT_SLOT(slotPrepareMenu( ) ) ); m_imProxy = KIMProxy::instance( kapp->dcopClient() ); } KTestMenu::~KTestMenu( ){ @@ -56,20 +56,20 @@ KTestMenu::~KTestMenu( ){ void KTestMenu::slotPopupMaeh( ){ } -void KTestMenu::slotStartCopyJob( const QString &path ) { +void KTestMenu::slotStartCopyJob( const TQString &path ) { KURL url = KURL::fromPathOrURL( path ); KIO::CopyJob *copy; copy = KIO::copy( popup->popupURLList(), url); copy->setAutoErrorHandlingEnabled( true ); } -void KTestMenu::slotStartMoveJob( const QString &path) { +void KTestMenu::slotStartMoveJob( const TQString &path) { KURL url = KURL::fromPathOrURL( path ); KIO::CopyJob *move; move = KIO::move( popup->popupURLList(), url ); move->setAutoErrorHandlingEnabled( true ); } -void KTestMenu::slotFileTransfer( const QString &uid ) { +void KTestMenu::slotFileTransfer( const TQString &uid ) { m_imProxy->sendFile( uid, popup->popupURLList().first() ); } @@ -77,11 +77,11 @@ void KTestMenu::slotPrepareMenu( ) { // now it's time to set up the menu... // search for the dummy entry 'kuick_plugin' stores it index reomev it plug copy at the position KGlobal::locale()->insertCatalogue("kuick_plugin"); - bool isKDesktop = QCString( kapp->name() ) == "kdesktop"; + bool isKDesktop = TQCString( kapp->name() ) == "kdesktop"; for(int i= popup->count(); i >=1; i--) { int id = popup->idAt( i ); - QString text = popup->text( id ); + TQString text = popup->text( id ); if( text.contains("kuick_plugin") ) { popup->removeItem( id ); if (isKDesktop && !kapp->authorize("editable_desktop_icons")) @@ -95,18 +95,18 @@ void KTestMenu::slotPrepareMenu( ) { // now it's time to set up the menu... meta_copy_mmu = new KMetaMenu(popup, popup->url(), i18n("&Copy Here") , "kuick-copy", m_imProxy ); popup->insertItem(i18n("Copy To"), meta_copy_mmu, -1, i ); - connect( meta_copy_mmu, SIGNAL(fileChosen(const QString &) ), - SLOT(slotStartCopyJob(const QString & )) ); + connect( meta_copy_mmu, TQT_SIGNAL(fileChosen(const TQString &) ), + TQT_SLOT(slotStartCopyJob(const TQString & )) ); - connect( meta_copy_mmu, SIGNAL( contactChosen( const QString & ) ), - SLOT( slotFileTransfer( const QString & )) ); + connect( meta_copy_mmu, TQT_SIGNAL( contactChosen( const TQString & ) ), + TQT_SLOT( slotFileTransfer( const TQString & )) ); if( popup->protocolInfo().supportsMoving() ){ meta_move_mmu = new KMetaMenu(popup, popup->url(), i18n("&Move Here"), "kuick-move"); popup->insertItem(i18n("Move To"), meta_move_mmu, -1, i+1 ); - connect( meta_move_mmu, SIGNAL(fileChosen(const QString &) ), - SLOT(slotStartMoveJob(const QString & )) ); + connect( meta_move_mmu, TQT_SIGNAL(fileChosen(const TQString &) ), + TQT_SLOT(slotStartMoveJob(const TQString & )) ); } break; } |