From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcal/resourcecachedconfig.cpp | 68 ++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'libkcal/resourcecachedconfig.cpp') diff --git a/libkcal/resourcecachedconfig.cpp b/libkcal/resourcecachedconfig.cpp index 4e701db3b..c1793c26a 100644 --- a/libkcal/resourcecachedconfig.cpp +++ b/libkcal/resourcecachedconfig.cpp @@ -19,12 +19,12 @@ Boston, MA 02110-1301, USA. */ -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include @@ -35,24 +35,24 @@ using namespace KCal; -ResourceCachedReloadConfig::ResourceCachedReloadConfig( QWidget *parent, +ResourceCachedReloadConfig::ResourceCachedReloadConfig( TQWidget *parent, const char *name ) - : QWidget( parent, name ) + : TQWidget( parent, name ) { - QBoxLayout *topLayout = new QVBoxLayout( this ); + TQBoxLayout *topLayout = new TQVBoxLayout( this ); - mGroup = new QButtonGroup( 1, Horizontal, i18n("Automatic Reload"), this ); + mGroup = new TQButtonGroup( 1, Horizontal, i18n("Automatic Reload"), this ); topLayout->addWidget( mGroup ); - new QRadioButton( i18n("Never"), mGroup ); - new QRadioButton( i18n("On startup"), mGroup ); + new TQRadioButton( i18n("Never"), mGroup ); + new TQRadioButton( i18n("On startup"), mGroup ); - QRadioButton *intervalRadio = new QRadioButton( i18n("Regular interval"), + TQRadioButton *intervalRadio = new TQRadioButton( i18n("Regular interval"), mGroup ); - connect( intervalRadio, SIGNAL( stateChanged( int ) ), - SLOT( slotIntervalStateChanged( int ) ) ); - QHBox *intervalBox = new QHBox( mGroup ); - new QLabel( i18n("Interval in minutes"), intervalBox ); - mIntervalSpin = new QSpinBox( 1,900, 1,intervalBox ); + connect( intervalRadio, TQT_SIGNAL( stateChanged( int ) ), + TQT_SLOT( slotIntervalStateChanged( int ) ) ); + TQHBox *intervalBox = new TQHBox( mGroup ); + new TQLabel( i18n("Interval in minutes"), intervalBox ); + mIntervalSpin = new TQSpinBox( 1,900, 1,intervalBox ); mIntervalSpin->setEnabled( false ); } @@ -70,33 +70,33 @@ void ResourceCachedReloadConfig::saveSettings( ResourceCached *resource ) void ResourceCachedReloadConfig::slotIntervalStateChanged( int state ) { - if ( state == QButton::On ) mIntervalSpin->setEnabled( true ); + if ( state == TQButton::On ) mIntervalSpin->setEnabled( true ); else mIntervalSpin->setEnabled( false ); } -ResourceCachedSaveConfig::ResourceCachedSaveConfig( QWidget *parent, +ResourceCachedSaveConfig::ResourceCachedSaveConfig( TQWidget *parent, const char *name ) - : QWidget( parent, name ) + : TQWidget( parent, name ) { - QBoxLayout *topLayout = new QVBoxLayout( this ); + TQBoxLayout *topLayout = new TQVBoxLayout( this ); - mGroup = new QButtonGroup( 1, Horizontal, i18n("Automatic Save"), this ); + mGroup = new TQButtonGroup( 1, Horizontal, i18n("Automatic Save"), this ); topLayout->addWidget( mGroup ); - new QRadioButton( i18n("Never"), mGroup ); - new QRadioButton( i18n("On exit"), mGroup ); + new TQRadioButton( i18n("Never"), mGroup ); + new TQRadioButton( i18n("On exit"), mGroup ); - QRadioButton *intervalRadio = new QRadioButton( i18n("Regular interval"), + TQRadioButton *intervalRadio = new TQRadioButton( i18n("Regular interval"), mGroup ); - connect( intervalRadio, SIGNAL( stateChanged( int ) ), - SLOT( slotIntervalStateChanged( int ) ) ); - QHBox *intervalBox = new QHBox( mGroup ); - new QLabel( i18n("Interval in minutes"), intervalBox ); - mIntervalSpin = new QSpinBox( 1,900, 1,intervalBox ); + connect( intervalRadio, TQT_SIGNAL( stateChanged( int ) ), + TQT_SLOT( slotIntervalStateChanged( int ) ) ); + TQHBox *intervalBox = new TQHBox( mGroup ); + new TQLabel( i18n("Interval in minutes"), intervalBox ); + mIntervalSpin = new TQSpinBox( 1,900, 1,intervalBox ); mIntervalSpin->setEnabled( false ); - new QRadioButton( i18n("Delayed after changes"), mGroup ); - new QRadioButton( i18n("On every change"), mGroup ); + new TQRadioButton( i18n("Delayed after changes"), mGroup ); + new TQRadioButton( i18n("On every change"), mGroup ); } void ResourceCachedSaveConfig::loadSettings( ResourceCached *resource ) @@ -113,7 +113,7 @@ void ResourceCachedSaveConfig::saveSettings( ResourceCached *resource ) void ResourceCachedSaveConfig::slotIntervalStateChanged( int state ) { - if ( state == QButton::On ) mIntervalSpin->setEnabled( true ); + if ( state == TQButton::On ) mIntervalSpin->setEnabled( true ); else mIntervalSpin->setEnabled( false ); } -- cgit v1.2.1