diff options
Diffstat (limited to 'lib/interfaces/extras')
-rw-r--r-- | lib/interfaces/extras/kdevcompileroptions.cpp | 4 | ||||
-rw-r--r-- | lib/interfaces/extras/kdevcompileroptions.h | 22 | ||||
-rw-r--r-- | lib/interfaces/extras/kdevvcsintegrator.cpp | 4 | ||||
-rw-r--r-- | lib/interfaces/extras/kdevvcsintegrator.h | 24 |
4 files changed, 27 insertions, 27 deletions
diff --git a/lib/interfaces/extras/kdevcompileroptions.cpp b/lib/interfaces/extras/kdevcompileroptions.cpp index 5d87eec7..d62130f9 100644 --- a/lib/interfaces/extras/kdevcompileroptions.cpp +++ b/lib/interfaces/extras/kdevcompileroptions.cpp @@ -1,6 +1,6 @@ #include "kdevcompileroptions.h" -KDevCompilerOptions::KDevCompilerOptions( QObject * parent, const char * name ) - :QObject(parent, name) +KDevCompilerOptions::KDevCompilerOptions( TQObject * parent, const char * name ) + :TQObject(parent, name) { } diff --git a/lib/interfaces/extras/kdevcompileroptions.h b/lib/interfaces/extras/kdevcompileroptions.h index 18e0fd2e..bac7e16e 100644 --- a/lib/interfaces/extras/kdevcompileroptions.h +++ b/lib/interfaces/extras/kdevcompileroptions.h @@ -26,7 +26,7 @@ The interface to compiler options configuration. #ifndef _KDEVCOMPILEROPTIONS_H_ #define _KDEVCOMPILEROPTIONS_H_ -#include <qobject.h> +#include <tqobject.h> /** The interface to compiler options configuration. @@ -34,22 +34,22 @@ Used by build systems to give users a compiler options configuration dialog. Common use case: @code -static KDevCompilerOptions *createCompilerOptions( const QString &name, QObject *parent ) +static KDevCompilerOptions *createCompilerOptions( const TQString &name, TQObject *parent ) { KService::Ptr service = KService::serviceByDesktopName( name ); if ( !service ) return 0; - KLibFactory *factory = KLibLoader::self()->factory(QFile::encodeName(service->library())); + KLibFactory *factory = KLibLoader::self()->factory(TQFile::encodeName(service->library())); if (!factory) return 0; - QStringList args; - QVariant prop = service->property("X-KDevelop-Args"); + TQStringList args; + TQVariant prop = service->property("X-KDevelop-Args"); if (prop.isValid()) - args = QStringList::split(" ", prop.toString()); + args = TQStringList::split(" ", prop.toString()); - QObject *obj = factory->create(parent, service->name().latin1(), + TQObject *obj = factory->create(parent, service->name().latin1(), "KDevCompilerOptions", args); if (!obj->inherits("KDevCompilerOptions")) @@ -61,7 +61,7 @@ static KDevCompilerOptions *createCompilerOptions( const QString &name, QObject ... KDevCompilerOptions *plugin = createCompilerOptions(compilerName, parent); -QString flags = ""; //old compiler flags +TQString flags = ""; //old compiler flags if ( plugin ) { flags = plugin->exec( parent, flags ); //new compiler flags are returned @@ -74,7 +74,7 @@ class KDevCompilerOptions : public QObject Q_OBJECT public: - KDevCompilerOptions( QObject *parent=0, const char *name=0 ); + KDevCompilerOptions( TQObject *parent=0, const char *name=0 ); /** * Opens a dialog which allows the user to configure the @@ -82,9 +82,9 @@ public: * will be set from the flags argument of this method. * After the dialog is accepted, the new settings will * be returned as a string. If the dialog was cancelled, - * QString::null is returned. + * TQString::null is returned. */ - virtual QString exec(QWidget *parent, const QString &flags) = 0; + virtual TQString exec(TQWidget *parent, const TQString &flags) = 0; }; #endif diff --git a/lib/interfaces/extras/kdevvcsintegrator.cpp b/lib/interfaces/extras/kdevvcsintegrator.cpp index 88dce474..5a6ab429 100644 --- a/lib/interfaces/extras/kdevvcsintegrator.cpp +++ b/lib/interfaces/extras/kdevvcsintegrator.cpp @@ -18,8 +18,8 @@ */ #include "kdevvcsintegrator.h" -KDevVCSIntegrator::KDevVCSIntegrator(QObject *parent, const char *name) - :QObject(parent, name) +KDevVCSIntegrator::KDevVCSIntegrator(TQObject *parent, const char *name) + :TQObject(parent, name) { } diff --git a/lib/interfaces/extras/kdevvcsintegrator.h b/lib/interfaces/extras/kdevvcsintegrator.h index 62928cae..0efc71b5 100644 --- a/lib/interfaces/extras/kdevvcsintegrator.h +++ b/lib/interfaces/extras/kdevvcsintegrator.h @@ -19,7 +19,7 @@ #ifndef KDEVVCSINTEGRATOR_H #define KDEVVCSINTEGRATOR_H -#include <qobject.h> +#include <tqobject.h> /** @file kdevvcsintegrator.h @@ -34,11 +34,11 @@ VCS Integration Dialog. Usually it is created as: @code -class MyVCSDialog: public QWidget, public VCSDialog { - MyVCSDialog(QWidget *parent = 0, const char *name = 0); +class MyVCSDialog: public TQWidget, public VCSDialog { + MyVCSDialog(TQWidget *parent = 0, const char *name = 0); virtual void accept() { ... } - virtual void init(const QString &projectName, const QString &projectLocation) { ... } - virtual QWidget *self() { + virtual void init(const TQString &projectName, const TQString &projectLocation) { ... } + virtual TQWidget *self() { return const_cast<MyVCSDialog*>(this); } } @@ -47,14 +47,14 @@ class MyVCSDialog: public QWidget, public VCSDialog { class VCSDialog { public: VCSDialog() { } - /**Implement all integration actions here. Do not use QDialog::accept method + /**Implement all integration actions here. Do not use TQDialog::accept method to perform integration actions.*/ virtual void accept() = 0; /**Init integration dialog with the project name and location.*/ - virtual void init(const QString &projectName, const QString &projectLocation) = 0; + virtual void init(const TQString &projectName, const TQString &projectLocation) = 0; /**Reimplement to return an actual integration widget. Use QWidgets for that, not QDialogs because integrator dialogs are usually have parent containers.*/ - virtual QWidget *self() = 0; + virtual TQWidget *self() = 0; }; /** @@ -62,15 +62,15 @@ The interface to VCS integrators. VCS integrator takes care about setting up VCS for new and existing projects. It can, for example, perform checkout or import operations. */ -class KDevVCSIntegrator: public QObject { +class KDevVCSIntegrator: public TQObject { Q_OBJECT public: - KDevVCSIntegrator(QObject *parent = 0, const char *name = 0); + KDevVCSIntegrator(TQObject *parent = 0, const char *name = 0); /**Reimplement to return a dialog to fetch the project from VCS.*/ - virtual VCSDialog *fetcher(QWidget *parent) = 0; + virtual VCSDialog *fetcher(TQWidget *parent) = 0; /**Reimplement to return a dialog to integrate the project into VCS.*/ - virtual VCSDialog *integrator(QWidget *parent) = 0; + virtual VCSDialog *integrator(TQWidget *parent) = 0; }; #endif |