diff options
Diffstat (limited to 'kcontrol/knotify')
-rw-r--r-- | kcontrol/knotify/knotify.cpp | 56 | ||||
-rw-r--r-- | kcontrol/knotify/knotify.h | 10 |
2 files changed, 33 insertions, 33 deletions
diff --git a/kcontrol/knotify/knotify.cpp b/kcontrol/knotify/knotify.cpp index 8cd4d16a5..edfa28e48 100644 --- a/kcontrol/knotify/knotify.cpp +++ b/kcontrol/knotify/knotify.cpp @@ -18,12 +18,12 @@ */ -#include <qbuttongroup.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qradiobutton.h> -#include <qslider.h> -#include <qvbox.h> +#include <tqbuttongroup.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqradiobutton.h> +#include <tqslider.h> +#include <tqvbox.h> #include <dcopclient.h> @@ -42,12 +42,12 @@ static const int COL_FILENAME = 1; -typedef KGenericFactory<KCMKNotify, QWidget> NotifyFactory; +typedef KGenericFactory<KCMKNotify, TQWidget> NotifyFactory; K_EXPORT_COMPONENT_FACTORY( kcm_knotify, NotifyFactory("kcmnotify") ) using namespace KNotify; -KCMKNotify::KCMKNotify(QWidget *parent, const char *name, const QStringList & ) +KCMKNotify::KCMKNotify(TQWidget *parent, const char *name, const TQStringList & ) : KCModule(NotifyFactory::instance(), parent, name), m_playerSettings( 0L ) { @@ -64,25 +64,25 @@ KCMKNotify::KCMKNotify(QWidget *parent, const char *name, const QStringList & ) "any additional visual or audible alert." "</ul>")); - QVBoxLayout *layout = new QVBoxLayout( this, 0, KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n( "Event source:" ), this ); + TQLabel *label = new TQLabel( i18n( "Event source:" ), this ); m_appCombo = new KComboBox( false, this, "app combo" ); - QHBoxLayout *hbox = new QHBoxLayout( layout ); + TQHBoxLayout *hbox = new TQHBoxLayout( layout ); hbox->addWidget( label ); hbox->addWidget( m_appCombo, 10 ); m_notifyWidget = new KNotifyWidget( this, "knotify widget", true ); - connect( m_notifyWidget, SIGNAL( changed( bool )), SIGNAL( changed(bool))); + connect( m_notifyWidget, TQT_SIGNAL( changed( bool )), TQT_SIGNAL( changed(bool))); layout->addWidget( m_notifyWidget ); - connect( m_appCombo, SIGNAL( activated( const QString& ) ), - SLOT( slotAppActivated( const QString& )) ); + connect( m_appCombo, TQT_SIGNAL( activated( const TQString& ) ), + TQT_SLOT( slotAppActivated( const TQString& )) ); - connect( m_notifyWidget->m_playerButton, SIGNAL( clicked() ), - SLOT( slotPlayerSettings())); + connect( m_notifyWidget->m_playerButton, TQT_SIGNAL( clicked() ), + TQT_SLOT( slotPlayerSettings())); KAboutData* ab = new KAboutData( "kcmknotify", I18N_NOOP("KNotify"), "3.0", @@ -109,7 +109,7 @@ KCMKNotify::~KCMKNotify() } } -Application * KCMKNotify::applicationByDescription( const QString& text ) +Application * KCMKNotify::applicationByDescription( const TQString& text ) { // not really efficient, but this is not really time-critical ApplicationList& allApps = m_notifyWidget->allApps(); @@ -123,7 +123,7 @@ Application * KCMKNotify::applicationByDescription( const QString& text ) return 0L; } -void KCMKNotify::slotAppActivated( const QString& text ) +void KCMKNotify::slotAppActivated( const TQString& text ) { Application *app = applicationByDescription( text ); if ( app ) @@ -162,10 +162,10 @@ void KCMKNotify::load( bool useDefaults ) m_appCombo->clear(); m_notifyWidget->clear(); - QStringList fullpaths = + TQStringList fullpaths = KGlobal::dirs()->findAllResources("data", "*/eventsrc", false, true ); - QStringList::ConstIterator it = fullpaths.begin(); + TQStringList::ConstIterator it = fullpaths.begin(); for ( ; it != fullpaths.end(); ++it) m_notifyWidget->addApplicationEvents( *it ); @@ -176,7 +176,7 @@ void KCMKNotify::load( bool useDefaults ) KConfig config( "knotifyrc", true, false ); config.setReadDefaults( useDefaults ); config.setGroup( "Misc" ); - QString select = config.readEntry( "LastConfiguredApp" ); + TQString select = config.readEntry( "LastConfiguredApp" ); if( select.isEmpty()) select = "knotify"; // default to system notifications bool selected = false; @@ -215,13 +215,13 @@ void KCMKNotify::save() /////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////// -PlayerSettingsDialog::PlayerSettingsDialog( QWidget *parent, bool modal ) +PlayerSettingsDialog::PlayerSettingsDialog( TQWidget *parent, bool modal ) : KDialogBase( parent, "player settings dialog", modal, i18n("Player Settings"), Ok|Apply|Cancel, Ok, true ) { - QFrame *frame = makeMainWidget(); + TQFrame *frame = makeMainWidget(); - QVBoxLayout *topLayout = new QVBoxLayout( frame, 0, + TQVBoxLayout *topLayout = new TQVBoxLayout( frame, 0, KDialog::spacingHint() ); m_ui = new PlayerSettingsUI(frame); @@ -231,10 +231,10 @@ PlayerSettingsDialog::PlayerSettingsDialog( QWidget *parent, bool modal ) dataChanged = false; enableButton(Apply, false); - connect( m_ui->cbExternal, SIGNAL( toggled( bool ) ), this, SLOT( externalToggled( bool ) ) ); - connect( m_ui->grpPlayers, SIGNAL( clicked( int ) ), this, SLOT( slotChanged() ) ); - connect( m_ui->volumeSlider, SIGNAL( valueChanged ( int ) ), this, SLOT( slotChanged() ) ); - connect( m_ui->reqExternal, SIGNAL( textChanged( const QString& ) ), this, SLOT( slotChanged() ) ); + connect( m_ui->cbExternal, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( externalToggled( bool ) ) ); + connect( m_ui->grpPlayers, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotChanged() ) ); + connect( m_ui->volumeSlider, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) ); + connect( m_ui->reqExternal, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( slotChanged() ) ); } void PlayerSettingsDialog::load( bool useDefaults ) diff --git a/kcontrol/knotify/knotify.h b/kcontrol/knotify/knotify.h index 2ee2f3ef6..1b1f5e34c 100644 --- a/kcontrol/knotify/knotify.h +++ b/kcontrol/knotify/knotify.h @@ -23,7 +23,7 @@ #ifndef _KNOTIFY_H #define _KNOTIFY_H -#include <qstring.h> +#include <tqstring.h> #include <kcmodule.h> #include <kdialogbase.h> @@ -49,7 +49,7 @@ class KCMKNotify : public KCModule Q_OBJECT public: - KCMKNotify(QWidget *parent, const char *name, const QStringList &); + KCMKNotify(TQWidget *parent, const char *name, const TQStringList &); virtual ~KCMKNotify(); virtual void defaults(); @@ -60,11 +60,11 @@ public slots: virtual void load(); private slots: - void slotAppActivated( const QString& app ); + void slotAppActivated( const TQString& app ); void slotPlayerSettings(); private: - KNotify::Application *applicationByDescription( const QString& text ); + KNotify::Application *applicationByDescription( const TQString& text ); KComboBox *m_appCombo; KNotify::KNotifyWidget *m_notifyWidget; @@ -77,7 +77,7 @@ class PlayerSettingsDialog : public KDialogBase Q_OBJECT public: - PlayerSettingsDialog( QWidget *parent, bool modal ); + PlayerSettingsDialog( TQWidget *parent, bool modal ); void load( bool useDefaults ); void save(); |