diff options
Diffstat (limited to 'parts/vcsmanager')
-rw-r--r-- | parts/vcsmanager/vcsmanagerpart.cpp | 24 | ||||
-rw-r--r-- | parts/vcsmanager/vcsmanagerpart.h | 10 | ||||
-rw-r--r-- | parts/vcsmanager/vcsmanagerprojectconfig.cpp | 12 | ||||
-rw-r--r-- | parts/vcsmanager/vcsmanagerprojectconfig.h | 4 |
4 files changed, 25 insertions, 25 deletions
diff --git a/parts/vcsmanager/vcsmanagerpart.cpp b/parts/vcsmanager/vcsmanagerpart.cpp index a13239a4..58ef9444 100644 --- a/parts/vcsmanager/vcsmanagerpart.cpp +++ b/parts/vcsmanager/vcsmanagerpart.cpp @@ -20,9 +20,9 @@ #include "vcsmanagerpart.h" -#include <qtimer.h> -#include <qpopupmenu.h> -#include <qwhatsthis.h> +#include <tqtimer.h> +#include <tqpopupmenu.h> +#include <tqwhatsthis.h> #include <klocale.h> #include <kaction.h> @@ -48,7 +48,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdevvcsmanager, VCSManagerFactory( data ) ) #define GLOBALDOC_OPTIONS 1 #define PROJECTDOC_OPTIONS 2 -VCSManagerPart::VCSManagerPart(QObject *parent, const char *name, const QStringList &/*args*/) +VCSManagerPart::VCSManagerPart(TQObject *parent, const char *name, const TQStringList &/*args*/) : KDevPlugin(&data, parent, name ? name : "VCSManagerPart") { kdDebug() << " ********** VCSManagerPart::VCSManagerPart() ************** " << endl; @@ -58,10 +58,10 @@ VCSManagerPart::VCSManagerPart(QObject *parent, const char *name, const QStringL m_configProxy = new ConfigWidgetProxy(core()); m_configProxy->createProjectConfigPage(i18n("Version Control"), PROJECTDOC_OPTIONS, info()->icon()); - connect(m_configProxy, SIGNAL(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )), - this, SLOT(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int))); + connect(m_configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )), + this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int))); - connect(core(), SIGNAL(projectOpened()), this, SLOT(projectOpened())); + connect(core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened())); } VCSManagerPart::~VCSManagerPart() @@ -69,14 +69,14 @@ VCSManagerPart::~VCSManagerPart() delete m_configProxy; } -void VCSManagerPart::insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo) +void VCSManagerPart::insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo) { switch (pageNo) { case PROJECTDOC_OPTIONS: { VCSManagerProjectConfig *w = new VCSManagerProjectConfig(this, page, "project config"); - connect(dlg, SIGNAL(okClicked()), w, SLOT(accept())); + connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept())); break; } } @@ -91,11 +91,11 @@ void VCSManagerPart::loadVCSPlugin() { unloadVCSPlugin(); - QDomDocument & dom = *projectDom(); + TQDomDocument & dom = *projectDom(); m_vcsPluginName = DomUtil::readEntry( dom, "/general/versioncontrol" ).stripWhiteSpace(); if ( m_vcsPluginName.isEmpty() ) return; - QString constraint = QString( "DesktopEntryName=='%1'" ).arg( m_vcsPluginName ); + TQString constraint = TQString( "DesktopEntryName=='%1'" ).arg( m_vcsPluginName ); pluginController()->loadPlugin( "KDevelop/VersionControl", constraint ); } @@ -107,7 +107,7 @@ void VCSManagerPart::unloadVCSPlugin() } } -QString VCSManagerPart::vcsPlugin() +TQString VCSManagerPart::vcsPlugin() { return m_vcsPluginName; } diff --git a/parts/vcsmanager/vcsmanagerpart.h b/parts/vcsmanager/vcsmanagerpart.h index 9570944c..eabff928 100644 --- a/parts/vcsmanager/vcsmanagerpart.h +++ b/parts/vcsmanager/vcsmanagerpart.h @@ -23,7 +23,7 @@ #include <kdevplugin.h> -#include <qguardedptr.h> +#include <tqguardedptr.h> class QPopupMenu; class KAction; @@ -39,18 +39,18 @@ class VCSManagerPart: public KDevPlugin { Q_OBJECT public: - VCSManagerPart(QObject *parent, const char *name, const QStringList &args); + VCSManagerPart(TQObject *parent, const char *name, const TQStringList &args); ~VCSManagerPart(); - QString vcsPlugin(); + TQString vcsPlugin(); void loadVCSPlugin(); void unloadVCSPlugin(); private slots: - void insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo); + void insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo); void projectOpened(); private: - QString m_vcsPluginName; + TQString m_vcsPluginName; ConfigWidgetProxy *m_configProxy; }; diff --git a/parts/vcsmanager/vcsmanagerprojectconfig.cpp b/parts/vcsmanager/vcsmanagerprojectconfig.cpp index a3dbeab2..9a081f3a 100644 --- a/parts/vcsmanager/vcsmanagerprojectconfig.cpp +++ b/parts/vcsmanager/vcsmanagerprojectconfig.cpp @@ -17,8 +17,8 @@ * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include <qcombobox.h> -#include <qstring.h> +#include <tqcombobox.h> +#include <tqstring.h> #include <ktrader.h> #include <klocale.h> @@ -28,7 +28,7 @@ #include "vcsmanagerprojectconfig.h" #include "vcsmanagerpart.h" -VCSManagerProjectConfig::VCSManagerProjectConfig( VCSManagerPart *part, QWidget *parent, const char *name ) +VCSManagerProjectConfig::VCSManagerProjectConfig( VCSManagerPart *part, TQWidget *parent, const char *name ) : VCSManagerProjectConfigBase( parent, name ), m_part( part ) { setup(); @@ -36,9 +36,9 @@ VCSManagerProjectConfig::VCSManagerProjectConfig( VCSManagerPart *part, QWidget void VCSManagerProjectConfig::accept() { - QString vcsPluginName = *m_vcsPluginNames.at( vcsCombo->currentItem() ); + TQString vcsPluginName = *m_vcsPluginNames.at( vcsCombo->currentItem() ); - QDomDocument & dom = *m_part->projectDom(); + TQDomDocument & dom = *m_part->projectDom(); DomUtil::writeEntry( dom, "/general/versioncontrol", vcsPluginName ); m_part->loadVCSPlugin(); @@ -51,7 +51,7 @@ void VCSManagerProjectConfig::setup( ) int current = 0; - QString constraint = QString("[X-KDevelop-Version] == %1").arg(KDEVELOP_PLUGIN_VERSION); + TQString constraint = TQString("[X-KDevelop-Version] == %1").arg(KDEVELOP_PLUGIN_VERSION); KTrader::OfferList offers = KTrader::self()->query("KDevelop/VersionControl", constraint ); KTrader::OfferList::const_iterator it = offers.begin(); for ( int i = 1; it != offers.end(); ++it, ++i ) diff --git a/parts/vcsmanager/vcsmanagerprojectconfig.h b/parts/vcsmanager/vcsmanagerprojectconfig.h index 50db9ce7..c452ac41 100644 --- a/parts/vcsmanager/vcsmanagerprojectconfig.h +++ b/parts/vcsmanager/vcsmanagerprojectconfig.h @@ -30,7 +30,7 @@ class VCSManagerProjectConfig: public VCSManagerProjectConfigBase { Q_OBJECT public: - VCSManagerProjectConfig( VCSManagerPart *part, QWidget *parent = 0, const char *name = 0); + VCSManagerProjectConfig( VCSManagerPart *part, TQWidget *parent = 0, const char *name = 0); public slots: void accept(); @@ -39,7 +39,7 @@ private: void setup(); VCSManagerPart * m_part; - QStringList m_vcsPluginNames; + TQStringList m_vcsPluginNames; }; #endif |