diff options
Diffstat (limited to 'libkdepim/komposer/core/prefsmodule.cpp')
-rw-r--r-- | libkdepim/komposer/core/prefsmodule.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/libkdepim/komposer/core/prefsmodule.cpp b/libkdepim/komposer/core/prefsmodule.cpp index b907154c4..7dd1673e9 100644 --- a/libkdepim/komposer/core/prefsmodule.cpp +++ b/libkdepim/komposer/core/prefsmodule.cpp @@ -27,24 +27,24 @@ #include <klocale.h> #include <ktrader.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qbuttongroup.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqbuttongroup.h> #include <kdepimmacros.h> extern "C" { - KDE_EXPORT KCModule *create_komposerconfig( QWidget *parent, const char * ) { + KDE_EXPORT KCModule *create_komposerconfig( TQWidget *parent, const char * ) { return new Komposer::PrefsModule( parent, "komposerprefs" ); } } using namespace Komposer; -PrefsModule::PrefsModule( QWidget *parent, const char *name ) +PrefsModule::PrefsModule( TQWidget *parent, const char *name ) : KPrefsModule( Komposer::Prefs::self(), parent, name ) { - QVBoxLayout *topLayout = new QVBoxLayout( this ); + TQVBoxLayout *topLayout = new TQVBoxLayout( this ); EditorSelection *editors = new EditorSelection( i18n( "Editors" ), Komposer::Prefs::self()->m_activeEditor, @@ -70,26 +70,26 @@ PrefsModule::aboutData() const } -EditorSelection::EditorSelection( const QString &text, QString &reference, - QWidget *parent ) +EditorSelection::EditorSelection( const TQString &text, TQString &reference, + TQWidget *parent ) : m_reference( reference ) { - m_box = new QGroupBox( 0, Qt::Vertical, text, parent ); - QVBoxLayout *boxLayout = new QVBoxLayout( m_box->layout() ); + m_box = new TQGroupBox( 0, Qt::Vertical, text, parent ); + TQVBoxLayout *boxLayout = new TQVBoxLayout( m_box->layout() ); boxLayout->setAlignment( Qt::AlignTop ); m_editorsCombo = new KComboBox( m_box ); boxLayout->addWidget( m_editorsCombo ); - connect( m_editorsCombo, SIGNAL(activated(const QString&)), - SLOT(slotActivated(const QString&)) ); + connect( m_editorsCombo, TQT_SIGNAL(activated(const TQString&)), + TQT_SLOT(slotActivated(const TQString&)) ); } EditorSelection::~EditorSelection() { } -QGroupBox* +TQGroupBox* EditorSelection::groupBox() const { return m_box; @@ -101,14 +101,14 @@ EditorSelection::readConfig() m_editorsCombo->clear(); KTrader::OfferList editors = KTrader::self()->query( - QString::fromLatin1( "Komposer/Editor" ) ); + TQString::fromLatin1( "Komposer/Editor" ) ); KTrader::OfferList::ConstIterator it; int i = 0; for ( it = editors.begin(); it != editors.end(); ++it, ++i ) { - if ( !(*it)->hasServiceType( QString::fromLatin1( "Komposer/Editor" ) ) ) + if ( !(*it)->hasServiceType( TQString::fromLatin1( "Komposer/Editor" ) ) ) continue; - QString name = (*it)->property( "X-KDE-KomposerIdentifier" ).toString(); + TQString name = (*it)->property( "X-KDE-KomposerIdentifier" ).toString(); m_editorsCombo->insertItem( name ); if ( m_reference.contains( name ) ) m_editorsCombo->setCurrentItem( i ); @@ -122,14 +122,14 @@ void EditorSelection::writeConfig() } void -EditorSelection::slotActivated( const QString &editor ) +EditorSelection::slotActivated( const TQString &editor ) { if ( !editor.isEmpty() ) emit changed(); } void -EditorSelection::setItem( const QString &str ) +EditorSelection::setItem( const TQString &str ) { for ( int i = 0; i < m_editorsCombo->count(); ++i ) { if ( m_editorsCombo->text( i ) == str ) { |