From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/plugins/texteffect/texteffectplugin.cpp | 4 +-- kopete/plugins/texteffect/texteffectplugin.h | 3 +- .../plugins/texteffect/texteffectpreferences.cpp | 10 +++--- kopete/plugins/texteffect/texteffectpreferences.h | 5 +-- kopete/plugins/texteffect/texteffectprefs.ui | 36 +++++++++++----------- 5 files changed, 30 insertions(+), 28 deletions(-) (limited to 'kopete/plugins/texteffect') diff --git a/kopete/plugins/texteffect/texteffectplugin.cpp b/kopete/plugins/texteffect/texteffectplugin.cpp index 47bdbc14..664a38a8 100644 --- a/kopete/plugins/texteffect/texteffectplugin.cpp +++ b/kopete/plugins/texteffect/texteffectplugin.cpp @@ -28,8 +28,8 @@ typedef KGenericFactory TextEffectPluginFactory; K_EXPORT_COMPONENT_FACTORY( kopete_texteffect, TextEffectPluginFactory( "kopete_texteffect" ) ) -TextEffectPlugin::TextEffectPlugin( TQObject *parent, const char *name, const TQStringList &/*args*/ ) -: Kopete::Plugin( TextEffectPluginFactory::instance(), parent, name ) +TextEffectPlugin::TextEffectPlugin( TQObject *tqparent, const char *name, const TQStringList &/*args*/ ) +: Kopete::Plugin( TextEffectPluginFactory::instance(), tqparent, name ) { if( !pluginStatic_ ) pluginStatic_=this; diff --git a/kopete/plugins/texteffect/texteffectplugin.h b/kopete/plugins/texteffect/texteffectplugin.h index 6766bcfa..4090b6b3 100644 --- a/kopete/plugins/texteffect/texteffectplugin.h +++ b/kopete/plugins/texteffect/texteffectplugin.h @@ -41,11 +41,12 @@ class TextEffectConfig; class TextEffectPlugin : public Kopete::Plugin { Q_OBJECT + TQ_OBJECT public: static TextEffectPlugin *plugin(); - TextEffectPlugin( TQObject *parent, const char *name, const TQStringList &args ); + TextEffectPlugin( TQObject *tqparent, const char *name, const TQStringList &args ); ~TextEffectPlugin(); public slots: diff --git a/kopete/plugins/texteffect/texteffectpreferences.cpp b/kopete/plugins/texteffect/texteffectpreferences.cpp index 9fb2994c..ddbe5f61 100644 --- a/kopete/plugins/texteffect/texteffectpreferences.cpp +++ b/kopete/plugins/texteffect/texteffectpreferences.cpp @@ -35,10 +35,10 @@ typedef KGenericFactory TextEffectPreferencesFactory; K_EXPORT_COMPONENT_FACTORY( kcm_kopete_texteffect, TextEffectPreferencesFactory( "kcm_kopete_texteffect" ) ) -TextEffectPreferences::TextEffectPreferences(TQWidget *parent, +TextEffectPreferences::TextEffectPreferences(TQWidget *tqparent, const char* /*name*/, const TQStringList &args) - : KCModule(TextEffectPreferencesFactory::instance(), parent, args) + : KCModule(TextEffectPreferencesFactory::instance(), tqparent, args) { ( new TQVBoxLayout( this ) )->setAutoAdd( true ); @@ -106,7 +106,7 @@ void TextEffectPreferences::load() preferencesDialog->m_casewaves->setChecked(config->waves()); - // Call parent's save method + // Call tqparent's save method KCModule::load(); // Indicate that we have not changed ^_^ @@ -134,7 +134,7 @@ void TextEffectPreferences::save() // Notify the plugin that the settings have changed //TextEffectPlugin::plugin()->slotSettingsChanged(); - // Call parent's save method + // Call tqparent's save method KCModule::save(); // Indicate that we have not changed ^_^ @@ -157,7 +157,7 @@ void TextEffectPreferences::slotAddPressed() TQColor myColor; if( KColorDialog::getColor( myColor ) == KColorDialog::Accepted ) { - preferencesDialog->mColorsListBox->insertItem(myColor.name()); + preferencesDialog->mColorsListBox->insertItem(TQString(myColor.name())); } // Indicate that something has changed diff --git a/kopete/plugins/texteffect/texteffectpreferences.h b/kopete/plugins/texteffect/texteffectpreferences.h index 4a64ac1f..eb30faed 100644 --- a/kopete/plugins/texteffect/texteffectpreferences.h +++ b/kopete/plugins/texteffect/texteffectpreferences.h @@ -30,12 +30,13 @@ class TQStringList; class TextEffectPreferences : public KCModule { Q_OBJECT + TQ_OBJECT public: - TextEffectPreferences(TQWidget *parent = 0, const char* name = 0, const TQStringList &args = TQStringList()); + TextEffectPreferences(TQWidget *tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); ~TextEffectPreferences(); - // Overloaded from parent + // Overloaded from tqparent virtual void save(); virtual void load(); virtual void defaults(); diff --git a/kopete/plugins/texteffect/texteffectprefs.ui b/kopete/plugins/texteffect/texteffectprefs.ui index 95ff801c..919e2f54 100644 --- a/kopete/plugins/texteffect/texteffectprefs.ui +++ b/kopete/plugins/texteffect/texteffectprefs.ui @@ -1,7 +1,7 @@ TextEffectPrefs Olivier Goffart - + TextEffectPrefs @@ -23,11 +23,11 @@ 0 - + TabWidget3 - + tab @@ -38,7 +38,7 @@ unnamed - + groupBox1 @@ -54,7 +54,7 @@ mColorsListBox - + mColorsAdd @@ -62,7 +62,7 @@ &Add... - + mColorsRemove @@ -70,7 +70,7 @@ &Remove - + mColorsUp @@ -78,7 +78,7 @@ Move &Up - + mColorsDown @@ -96,7 +96,7 @@ Expanding - + 21 81 @@ -105,7 +105,7 @@ - + m_colorRandom @@ -127,7 +127,7 @@ Horizontal - + m_fg @@ -135,7 +135,7 @@ Change global text foreground color - + m_char @@ -143,7 +143,7 @@ Change color every letter - + m_words @@ -153,7 +153,7 @@ - + tab @@ -164,7 +164,7 @@ unnamed - + m_lamer @@ -180,7 +180,7 @@ L4m3r t4lk - + m_casewaves @@ -206,7 +206,7 @@ Expanding - + 20 279 @@ -224,7 +224,7 @@ knuminput.h - + klistbox.h -- cgit v1.2.1