diff options
Diffstat (limited to 'kresources/birthdays/resourcekabcconfig.cpp')
-rw-r--r-- | kresources/birthdays/resourcekabcconfig.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kresources/birthdays/resourcekabcconfig.cpp b/kresources/birthdays/resourcekabcconfig.cpp index 9fcbdcb61..2f7671dc7 100644 --- a/kresources/birthdays/resourcekabcconfig.cpp +++ b/kresources/birthdays/resourcekabcconfig.cpp @@ -21,8 +21,8 @@ #include <typeinfo> -#include <qheader.h> -#include <qlayout.h> +#include <tqheader.h> +#include <tqlayout.h> #include <kabprefs.h> #include <kdebug.h> @@ -33,26 +33,26 @@ using namespace KCal; -ResourceKABCConfig::ResourceKABCConfig( QWidget* parent, const char* name ) +ResourceKABCConfig::ResourceKABCConfig( TQWidget* parent, const char* name ) : KRES::ConfigWidget( parent, name ) { - QGridLayout *topLayout = new QGridLayout( this, 5, 1, 11, 6 ); + TQGridLayout *topLayout = new TQGridLayout( this, 5, 1, 11, 6 ); - mAlarm = new QCheckBox(i18n("Set reminder"), this); + mAlarm = new TQCheckBox(i18n("Set reminder"), this); topLayout->addWidget(mAlarm, 0, 0); - QBoxLayout *alarmLayout = new QHBoxLayout(topLayout); + TQBoxLayout *alarmLayout = new TQHBoxLayout(topLayout); - mALabel = new QLabel(i18n("Reminder before (in days):"), this); + mALabel = new TQLabel(i18n("Reminder before (in days):"), this); alarmLayout->addWidget(mALabel); mAlarmTimeEdit = new KRestrictedLine(this, "alarmTimeEdit", "1234567890"); mAlarmTimeEdit->setText("0"); alarmLayout->addWidget(mAlarmTimeEdit); - QFrame *line = new QFrame( this ); - line->setFrameStyle( QFrame::Sunken | QFrame::HLine ); + TQFrame *line = new TQFrame( this ); + line->setFrameStyle( TQFrame::Sunken | TQFrame::HLine ); topLayout->addMultiCellWidget( line, 2, 2, 0, 1 ); - mUseCategories = new QCheckBox( i18n( "Filter by categories" ), this ); + mUseCategories = new TQCheckBox( i18n( "Filter by categories" ), this ); topLayout->addMultiCellWidget( mUseCategories, 3, 3, 0, 1 ); mCategoryView = new KListView( this ); @@ -61,21 +61,21 @@ ResourceKABCConfig::ResourceKABCConfig( QWidget* parent, const char* name ) mCategoryView->setEnabled( false ); topLayout->addMultiCellWidget( mCategoryView, 4, 4, 0, 1 ); - connect( mUseCategories, SIGNAL( toggled( bool ) ), - mCategoryView, SLOT( setEnabled( bool ) ) ); + connect( mUseCategories, TQT_SIGNAL( toggled( bool ) ), + mCategoryView, TQT_SLOT( setEnabled( bool ) ) ); mAlarmTimeEdit->setDisabled(true); mALabel->setDisabled(true); - connect(mAlarm, SIGNAL(clicked()), SLOT(alarmClicked())); + connect(mAlarm, TQT_SIGNAL(clicked()), TQT_SLOT(alarmClicked())); setReadOnly( true ); KABPrefs *prefs = KABPrefs::instance(); - const QStringList categories = prefs->customCategories(); - QStringList::ConstIterator it; + const TQStringList categories = prefs->customCategories(); + TQStringList::ConstIterator it; for ( it = categories.begin(); it != categories.end(); ++it ) - new QCheckListItem( mCategoryView, *it, QCheckListItem::CheckBox ); + new TQCheckListItem( mCategoryView, *it, TQCheckListItem::CheckBox ); } void ResourceKABCConfig::loadSettings( KRES::Resource *resource ) @@ -83,17 +83,17 @@ void ResourceKABCConfig::loadSettings( KRES::Resource *resource ) ResourceKABC *res = static_cast<ResourceKABC *>( resource ); if ( res ) { mAlarm->setChecked( res->alarm() ); - QString days; + TQString days; mAlarmTimeEdit->setText( days.setNum(res->alarmDays()) ); mAlarmTimeEdit->setEnabled( res->alarm() ); mALabel->setEnabled( res->alarm() ); - const QStringList categories = res->categories(); - QListViewItemIterator it( mCategoryView ); + const TQStringList categories = res->categories(); + TQListViewItemIterator it( mCategoryView ); while ( it.current() ) { if ( categories.contains( it.current()->text( 0 ) ) ) { - QCheckListItem *item = static_cast<QCheckListItem*>( it.current() ); + TQCheckListItem *item = static_cast<TQCheckListItem*>( it.current() ); item->setOn( true ); } ++it; @@ -113,8 +113,8 @@ void ResourceKABCConfig::saveSettings( KRES::Resource *resource ) res->setAlarmDays( mAlarmTimeEdit->text().toInt() ); setReadOnly( true ); - QStringList categories; - QListViewItemIterator it( mCategoryView, QListViewItemIterator::Checked ); + TQStringList categories; + TQListViewItemIterator it( mCategoryView, TQListViewItemIterator::Checked ); while ( it.current() ) { categories.append( it.current()->text( 0 ) ); ++it; |