diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /lib/interfaces/extras/kdevcompileroptions.h | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/interfaces/extras/kdevcompileroptions.h')
-rw-r--r-- | lib/interfaces/extras/kdevcompileroptions.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/interfaces/extras/kdevcompileroptions.h b/lib/interfaces/extras/kdevcompileroptions.h index bac7e16e..15d9a066 100644 --- a/lib/interfaces/extras/kdevcompileroptions.h +++ b/lib/interfaces/extras/kdevcompileroptions.h @@ -34,7 +34,7 @@ Used by build systems to give users a compiler options configuration dialog. Common use case: @code -static KDevCompilerOptions *createCompilerOptions( const TQString &name, TQObject *parent ) +static KDevCompilerOptions *createCompilerOptions( const TQString &name, TQObject *tqparent ) { KService::Ptr service = KService::serviceByDesktopName( name ); if ( !service ) @@ -49,7 +49,7 @@ static KDevCompilerOptions *createCompilerOptions( const TQString &name, TQObjec if (prop.isValid()) args = TQStringList::split(" ", prop.toString()); - TQObject *obj = factory->create(parent, service->name().latin1(), + TQObject *obj = factory->create(tqparent, service->name().latin1(), "KDevCompilerOptions", args); if (!obj->inherits("KDevCompilerOptions")) @@ -60,21 +60,22 @@ static KDevCompilerOptions *createCompilerOptions( const TQString &name, TQObjec } ... -KDevCompilerOptions *plugin = createCompilerOptions(compilerName, parent); +KDevCompilerOptions *plugin = createCompilerOptions(compilerName, tqparent); TQString flags = ""; //old compiler flags if ( plugin ) { - flags = plugin->exec( parent, flags ); //new compiler flags are returned + flags = plugin->exec( tqparent, flags ); //new compiler flags are returned delete plugin; } @endcode */ -class KDevCompilerOptions : public QObject +class KDevCompilerOptions : public TQObject { Q_OBJECT + TQ_OBJECT public: - KDevCompilerOptions( TQObject *parent=0, const char *name=0 ); + KDevCompilerOptions( TQObject *tqparent=0, const char *name=0 ); /** * Opens a dialog which allows the user to configure the @@ -82,9 +83,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, - * TQString::null is returned. + * TQString() is returned. */ - virtual TQString exec(TQWidget *parent, const TQString &flags) = 0; + virtual TQString exec(TQWidget *tqparent, const TQString &flags) = 0; }; #endif |