summaryrefslogtreecommitdiffstats
path: root/lib/interfaces/extras/kdevcompileroptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/interfaces/extras/kdevcompileroptions.h')
-rw-r--r--lib/interfaces/extras/kdevcompileroptions.h17
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