diff options
Diffstat (limited to 'kopete/plugins/texteffect/texteffectpreferences.cpp')
-rw-r--r-- | kopete/plugins/texteffect/texteffectpreferences.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
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 <qstring.h> -#include <qlayout.h> -#include <qcheckbox.h> -#include <qpushbutton.h> +#include <tqstring.h> +#include <tqlayout.h> +#include <tqcheckbox.h> +#include <tqpushbutton.h> #include <klocale.h> #include <kcolordialog.h> @@ -35,12 +35,12 @@ typedef KGenericFactory<TextEffectPreferences> 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; f<preferencesDialog->mColorsListBox->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); |