From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/plugins/texteffect/texteffectconfig.cpp | 10 ++-- kopete/plugins/texteffect/texteffectconfig.h | 8 +-- kopete/plugins/texteffect/texteffectplugin.cpp | 18 +++--- kopete/plugins/texteffect/texteffectplugin.h | 8 +-- .../plugins/texteffect/texteffectpreferences.cpp | 66 +++++++++++----------- kopete/plugins/texteffect/texteffectpreferences.h | 4 +- 6 files changed, 57 insertions(+), 57 deletions(-) (limited to 'kopete/plugins/texteffect') diff --git a/kopete/plugins/texteffect/texteffectconfig.cpp b/kopete/plugins/texteffect/texteffectconfig.cpp index 9ecca3f0..2f6da206 100644 --- a/kopete/plugins/texteffect/texteffectconfig.cpp +++ b/kopete/plugins/texteffect/texteffectconfig.cpp @@ -16,7 +16,7 @@ ************************************************************************* */ -#include +#include #include #include @@ -47,9 +47,9 @@ void TextEffectConfig::load() mWaves = config->readBoolEntry("WaVeS", false); } -QStringList TextEffectConfig::defaultColorList() +TQStringList TextEffectConfig::defaultColorList() { - return QStringList::split( ",", "#00BBDD,#0088DD,#0000DD,#8800DD,#DD00DD,#DD0088,#DD0000,#DD8800,#DDBB00,#88BB00,#00BB00" ); + return TQStringList::split( ",", "#00BBDD,#0088DD,#0000DD,#8800DD,#DD00DD,#DD0088,#DD0000,#DD8800,#DDBB00,#88BB00,#00BB00" ); } void TextEffectConfig::save() @@ -69,7 +69,7 @@ void TextEffectConfig::save() config->sync(); } -QStringList TextEffectConfig::colors() const +TQStringList TextEffectConfig::colors() const { return mColors; } @@ -104,7 +104,7 @@ bool TextEffectConfig::waves() const return mWaves; } -void TextEffectConfig::setColors(const QStringList &newColors) +void TextEffectConfig::setColors(const TQStringList &newColors) { mColors = newColors; } diff --git a/kopete/plugins/texteffect/texteffectconfig.h b/kopete/plugins/texteffect/texteffectconfig.h index 80b19151..103ba772 100644 --- a/kopete/plugins/texteffect/texteffectconfig.h +++ b/kopete/plugins/texteffect/texteffectconfig.h @@ -30,7 +30,7 @@ public: void save(); //accessor functions - QStringList colors() const; + TQStringList colors() const; bool colorLines() const; bool colorWords() const; bool colorChar() const; @@ -38,18 +38,18 @@ public: bool lamer() const; bool waves() const; - void setColors(const QStringList &newColors = QStringList()); + void setColors(const TQStringList &newColors = TQStringList()); void setColorLines(bool newLines); void setColorChar(bool newChar); void setColorWords(bool newWords); void setColorRandom(bool newRandom); void setLamer(bool newLamer); void setWaves(bool newWaves); - QStringList defaultColorList(); + TQStringList defaultColorList(); private: - QStringList mColors; + TQStringList mColors; bool mColorLines; bool mColorWords; bool mColorChar; diff --git a/kopete/plugins/texteffect/texteffectplugin.cpp b/kopete/plugins/texteffect/texteffectplugin.cpp index 5374b2ca..47bdbc14 100644 --- a/kopete/plugins/texteffect/texteffectplugin.cpp +++ b/kopete/plugins/texteffect/texteffectplugin.cpp @@ -28,7 +28,7 @@ typedef KGenericFactory TextEffectPluginFactory; K_EXPORT_COMPONENT_FACTORY( kopete_texteffect, TextEffectPluginFactory( "kopete_texteffect" ) ) -TextEffectPlugin::TextEffectPlugin( QObject *parent, const char *name, const QStringList &/*args*/ ) +TextEffectPlugin::TextEffectPlugin( TQObject *parent, const char *name, const TQStringList &/*args*/ ) : Kopete::Plugin( TextEffectPluginFactory::instance(), parent, name ) { if( !pluginStatic_ ) @@ -36,11 +36,11 @@ TextEffectPlugin::TextEffectPlugin( QObject *parent, const char *name, const QSt m_config = new TextEffectConfig; - connect ( this , SIGNAL( settingsChanged() ) , this , SLOT( slotSettingsChanged() ) ); + connect ( this , TQT_SIGNAL( settingsChanged() ) , this , TQT_SLOT( slotSettingsChanged() ) ); connect( Kopete::ChatSessionManager::self(), - SIGNAL( aboutToSend( Kopete::Message & ) ), - SLOT( slotOutgoingMessage( Kopete::Message & ) ) ); + TQT_SIGNAL( aboutToSend( Kopete::Message & ) ), + TQT_SLOT( slotOutgoingMessage( Kopete::Message & ) ) ); last_color=0; } @@ -64,19 +64,19 @@ void TextEffectPlugin::slotOutgoingMessage( Kopete::Message& msg ) if(msg.direction() != Kopete::Message::Outbound) return; - QStringList colors=m_config->colors(); + TQStringList colors=m_config->colors(); if(m_config->colorChar() || m_config->colorWords() || m_config->lamer() || m_config->waves() ) { - QString original=msg.plainBody(); - QString resultat; + TQString original=msg.plainBody(); + TQString resultat; unsigned int c=0; bool wavein=false; for(unsigned int f=0;fcolorChar() || (m_config->colorWords() && x==' ' )) { if(f!=0) @@ -184,7 +184,7 @@ void TextEffectPlugin::slotOutgoingMessage( Kopete::Message& msg ) last_color=0; } - msg.setFg(QColor (colors[last_color])); + msg.setFg(TQColor (colors[last_color])); } } diff --git a/kopete/plugins/texteffect/texteffectplugin.h b/kopete/plugins/texteffect/texteffectplugin.h index db34fdcb..63441435 100644 --- a/kopete/plugins/texteffect/texteffectplugin.h +++ b/kopete/plugins/texteffect/texteffectplugin.h @@ -18,9 +18,9 @@ #ifndef TextEffectPLUGIN_H #define TextEffectPLUGIN_H -#include -#include -#include +#include +#include +#include #include "kopetemessage.h" #include "kopeteplugin.h" @@ -45,7 +45,7 @@ class TextEffectPlugin : public Kopete::Plugin public: static TextEffectPlugin *plugin(); - TextEffectPlugin( QObject *parent, const char *name, const QStringList &args ); + TextEffectPlugin( TQObject *parent, const char *name, const TQStringList &args ); ~TextEffectPlugin(); public slots: diff --git a/kopete/plugins/texteffect/texteffectpreferences.cpp b/kopete/plugins/texteffect/texteffectpreferences.cpp index c9f0c03b..9fb2994c 100644 --- a/kopete/plugins/texteffect/texteffectpreferences.cpp +++ b/kopete/plugins/texteffect/texteffectpreferences.cpp @@ -15,10 +15,10 @@ * * ***************************************************************************/ -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -35,12 +35,12 @@ typedef KGenericFactory TextEffectPreferencesFactory; K_EXPORT_COMPONENT_FACTORY( kcm_kopete_texteffect, TextEffectPreferencesFactory( "kcm_kopete_texteffect" ) ) -TextEffectPreferences::TextEffectPreferences(QWidget *parent, +TextEffectPreferences::TextEffectPreferences(TQWidget *parent, const char* /*name*/, - const QStringList &args) + const TQStringList &args) : KCModule(TextEffectPreferencesFactory::instance(), parent, args) { - ( new QVBoxLayout( this ) )->setAutoAdd( true ); + ( new TQVBoxLayout( this ) )->setAutoAdd( true ); kdDebug( 14310 ) << "Creating preferences dialog" << endl; @@ -52,32 +52,32 @@ TextEffectPreferences::TextEffectPreferences(QWidget *parent, kdDebug( 14310 ) << "Setting up connections" << endl; - connect(preferencesDialog->mColorsAdd , SIGNAL(pressed()) , - this , SLOT(slotAddPressed())); + connect(preferencesDialog->mColorsAdd , TQT_SIGNAL(pressed()) , + this , TQT_SLOT(slotAddPressed())); - connect(preferencesDialog->mColorsRemove , SIGNAL(pressed()) , - this , SLOT(slotRemovePressed())); + connect(preferencesDialog->mColorsRemove , TQT_SIGNAL(pressed()) , + this , TQT_SLOT(slotRemovePressed())); - connect(preferencesDialog->mColorsUp , SIGNAL(pressed()) , - this , SLOT(slotUpPressed())); + connect(preferencesDialog->mColorsUp , TQT_SIGNAL(pressed()) , + this , TQT_SLOT(slotUpPressed())); - connect(preferencesDialog->mColorsDown , SIGNAL(pressed()) , - this , SLOT(slotDownPressed())); + connect(preferencesDialog->mColorsDown , TQT_SIGNAL(pressed()) , + this , TQT_SLOT(slotDownPressed())); // Connect up all the check boxes - connect( preferencesDialog->m_lamer, SIGNAL( clicked() ), - this, SLOT( slotSettingChanged() ) ); - connect( preferencesDialog->m_casewaves, SIGNAL( clicked() ), - this, SLOT( slotSettingChanged() ) ); - - connect( preferencesDialog->m_colorRandom, SIGNAL( clicked() ), - this, SLOT( slotSettingChanged() ) ); - connect( preferencesDialog->m_fg, SIGNAL( clicked() ), - this, SLOT( slotSettingChanged() ) ); - connect( preferencesDialog->m_char, SIGNAL( clicked() ), - this, SLOT( slotSettingChanged() ) ); - connect( preferencesDialog->m_words, SIGNAL( clicked() ), - this, SLOT( slotSettingChanged() ) ); + connect( preferencesDialog->m_lamer, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( slotSettingChanged() ) ); + connect( preferencesDialog->m_casewaves, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( slotSettingChanged() ) ); + + connect( preferencesDialog->m_colorRandom, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( slotSettingChanged() ) ); + connect( preferencesDialog->m_fg, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( slotSettingChanged() ) ); + connect( preferencesDialog->m_char, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( slotSettingChanged() ) ); + connect( preferencesDialog->m_words, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( slotSettingChanged() ) ); //setMainWidget( preferencesDialog, "Text Effect Plugin" ); @@ -142,9 +142,9 @@ void TextEffectPreferences::save() kdDebug() << k_funcinfo << "EXIT" << endl; } -QStringList TextEffectPreferences::colors() +TQStringList TextEffectPreferences::colors() { - QStringList ret; + TQStringList ret; for(unsigned int f=0; fmColorsListBox->count() ; f++) { ret.append(preferencesDialog->mColorsListBox->text(f)); @@ -154,7 +154,7 @@ QStringList TextEffectPreferences::colors() void TextEffectPreferences::slotAddPressed() { - QColor myColor; + TQColor myColor; if( KColorDialog::getColor( myColor ) == KColorDialog::Accepted ) { preferencesDialog->mColorsListBox->insertItem(myColor.name()); @@ -177,7 +177,7 @@ void TextEffectPreferences::slotUpPressed() int p=preferencesDialog->mColorsListBox->currentItem(); if(p <= 0 ) return; - QListBoxItem *i=preferencesDialog->mColorsListBox->selectedItem(); + TQListBoxItem *i=preferencesDialog->mColorsListBox->selectedItem(); if(!i) return; preferencesDialog->mColorsListBox->setSelected(i,false); @@ -194,7 +194,7 @@ void TextEffectPreferences::slotDownPressed() int p=preferencesDialog->mColorsListBox->currentItem(); if(p < 0 ) return; - QListBoxItem *i=preferencesDialog->mColorsListBox->selectedItem(); + TQListBoxItem *i=preferencesDialog->mColorsListBox->selectedItem(); if(!i) return; preferencesDialog->mColorsListBox->setSelected(i,false); diff --git a/kopete/plugins/texteffect/texteffectpreferences.h b/kopete/plugins/texteffect/texteffectpreferences.h index 21dc7bff..e455e737 100644 --- a/kopete/plugins/texteffect/texteffectpreferences.h +++ b/kopete/plugins/texteffect/texteffectpreferences.h @@ -32,7 +32,7 @@ class TextEffectPreferences : public KCModule { Q_OBJECT public: - TextEffectPreferences(QWidget *parent = 0, const char* name = 0, const QStringList &args = QStringList()); + TextEffectPreferences(TQWidget *parent = 0, const char* name = 0, const TQStringList &args = TQStringList()); ~TextEffectPreferences(); // Overloaded from parent @@ -41,7 +41,7 @@ public: virtual void defaults(); private: - QStringList colors(); + TQStringList colors(); TextEffectPrefs *preferencesDialog; TextEffectConfig *config; -- cgit v1.2.1