summaryrefslogtreecommitdiffstats
path: root/tdeutils/ksettings/README.dox
diff options
context:
space:
mode:
Diffstat (limited to 'tdeutils/ksettings/README.dox')
-rw-r--r--tdeutils/ksettings/README.dox19
1 files changed, 9 insertions, 10 deletions
diff --git a/tdeutils/ksettings/README.dox b/tdeutils/ksettings/README.dox
index 88268f671..96da18a26 100644
--- a/tdeutils/ksettings/README.dox
+++ b/tdeutils/ksettings/README.dox
@@ -15,7 +15,7 @@ the following:
create the 'Configure MyApp' StdAction like this:
\code
-KStdAction::preferences( this, SLOT( showConfigDialog() ), actionCollection );
+KStdAction::preferences( this, TQ_SLOT( showConfigDialog() ), actionCollection );
\endcode
and the slot looks like this:
@@ -35,7 +35,7 @@ KSettings::Dialog:
m_dlg = new KSettings::Dialog( QStringList::split( ';', "component1;component2" ) );
\endcode
-The KSettings::Dialog object will be destructed automatically by the QObject
+The KSettings::Dialog object will be destructed automatically by the TQObject
mechanisms.
@@ -47,9 +47,9 @@ Every page is a KCM. This is what you need for creating a page:
\code
class MyAppConfig : public TDECModule
{
- Q_OBJECT
+ TQ_OBJECT
public:
- MyAppConfig( QWidget *parent, const char *name = 0, const QStringList &args =
+ MyAppConfig( TQWidget *parent, const char *name = 0, const QStringList &args =
QStringList() );
~MyAppConfig();
@@ -62,11 +62,11 @@ public:
and in the cpp file:
\code
-typedef KGenericFactory<MyAppConfig, QWidget> MyAppConfigFactory;
+typedef KGenericFactory<MyAppConfig, TQWidget> MyAppConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_myappconfig, MyAppConfigFactory(
"kcm_myappconfig" ) );
-MyAppConfig::MyAppConfig( QWidget *parent, const char *, const QStringList &args )
+MyAppConfig::MyAppConfig( TQWidget *parent, const char *, const QStringList &args )
: TDECModule( MyAppConfigFactory::instance(), parent, args )
{
// create the pages GUI
@@ -77,7 +77,7 @@ MyAppConfig::MyAppConfig( QWidget *parent, const char *, const QStringList &args
\endcode
For the TDEConfig object you can either use
-TDEGlobal::config() (I don't recommend it) or KSimpleConfig( "myapprc" ).
+TDEGlobal::config() (I don't recommend it) or TDESimpleConfig( "myapprc" ).
I added a method to KSettings::Dispatcher that gives you the TDEConfig
object for every registered instance name: \ref KSettings::Dispatcher::configForInstanceName
@@ -191,10 +191,10 @@ for the first.
To create a plugin page you need the following code:
\code
-typedef KGenericFactory<MyAppPluginConfig, QWidget> MyAppPluginConfigFactory;
+typedef KGenericFactory<MyAppPluginConfig, TQWidget> MyAppPluginConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_myapppluginconfig, MyAppPluginConfigFactory( "kcm_myapppluginconfig" ) );
-MyAppPluginConfig( QWidget * parent, const char *, const QStringList & args )
+MyAppPluginConfig( TQWidget * parent, const char *, const QStringList & args )
: PluginPage( MyAppPluginConfigFactory::instance(), parent, args )
{
pluginSelector()->addPlugins( ... );
@@ -273,4 +273,3 @@ optional entries:
If you have questions contact Matthias Kretz <kretz@kde.org>.
*/
-// vim: tw=80