diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kontact/plugins/specialdates/kcmsdsummary.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kontact/plugins/specialdates/kcmsdsummary.cpp')
-rw-r--r-- | kontact/plugins/specialdates/kcmsdsummary.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/kontact/plugins/specialdates/kcmsdsummary.cpp b/kontact/plugins/specialdates/kcmsdsummary.cpp index 9bb0211a5..326055855 100644 --- a/kontact/plugins/specialdates/kcmsdsummary.cpp +++ b/kontact/plugins/specialdates/kcmsdsummary.cpp @@ -22,12 +22,12 @@ without including the source code for Qt in the source distribution. */ -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qradiobutton.h> -#include <qspinbox.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqradiobutton.h> +#include <tqspinbox.h> #include <kaboutdata.h> #include <kapplication.h> @@ -43,25 +43,25 @@ extern "C" { - KDE_EXPORT KCModule *create_sdsummary( QWidget *parent, const char * ) + KDE_EXPORT KCModule *create_sdsummary( TQWidget *parent, const char * ) { return new KCMSDSummary( parent, "kcmsdsummary" ); } } -KCMSDSummary::KCMSDSummary( QWidget *parent, const char *name ) +KCMSDSummary::KCMSDSummary( TQWidget *parent, const char *name ) : KCModule( parent, name ) { initGUI(); customDaysChanged( 1 ); - connect( mDaysGroup, SIGNAL( clicked( int ) ), SLOT( modified() ) ); - connect( mDaysGroup, SIGNAL( clicked( int ) ), SLOT( buttonClicked( int ) ) ); - connect( mCalendarGroup, SIGNAL( clicked( int ) ), SLOT( modified() ) ); - connect( mContactGroup, SIGNAL( clicked( int ) ), SLOT( modified() ) ); - connect( mCustomDays, SIGNAL( valueChanged( int ) ), SLOT( modified() ) ); - connect( mCustomDays, SIGNAL( valueChanged( int ) ), SLOT( customDaysChanged( int ) ) ); + connect( mDaysGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( modified() ) ); + connect( mDaysGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( buttonClicked( int ) ) ); + connect( mCalendarGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( modified() ) ); + connect( mContactGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( modified() ) ); + connect( mCustomDays, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( modified() ) ); + connect( mCustomDays, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( customDaysChanged( int ) ) ); KAcceleratorManager::manage( this ); @@ -85,33 +85,33 @@ void KCMSDSummary::customDaysChanged( int value ) void KCMSDSummary::initGUI() { - QGridLayout *layout = new QGridLayout( this, 3, 2, KDialog::spacingHint() ); + TQGridLayout *layout = new TQGridLayout( this, 3, 2, KDialog::spacingHint() ); - mDaysGroup = new QButtonGroup( 0, Vertical, i18n( "Special Dates Summary" ), this ); - QVBoxLayout *boxLayout = new QVBoxLayout( mDaysGroup->layout(), + mDaysGroup = new TQButtonGroup( 0, Vertical, i18n( "Special Dates Summary" ), this ); + TQVBoxLayout *boxLayout = new TQVBoxLayout( mDaysGroup->layout(), KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n( "How many days should the special dates summary show at once?" ), mDaysGroup ); + TQLabel *label = new TQLabel( i18n( "How many days should the special dates summary show at once?" ), mDaysGroup ); boxLayout->addWidget( label ); - QRadioButton *button = new QRadioButton( i18n( "One day" ), mDaysGroup ); + TQRadioButton *button = new TQRadioButton( i18n( "One day" ), mDaysGroup ); boxLayout->addWidget( button ); - button = new QRadioButton( i18n( "Five days" ), mDaysGroup ); + button = new TQRadioButton( i18n( "Five days" ), mDaysGroup ); boxLayout->addWidget( button ); - button = new QRadioButton( i18n( "One week" ), mDaysGroup ); + button = new TQRadioButton( i18n( "One week" ), mDaysGroup ); boxLayout->addWidget( button ); - button = new QRadioButton( i18n( "One month" ), mDaysGroup ); + button = new TQRadioButton( i18n( "One month" ), mDaysGroup ); boxLayout->addWidget( button ); - QHBoxLayout *hbox = new QHBoxLayout( boxLayout, KDialog::spacingHint() ); + TQHBoxLayout *hbox = new TQHBoxLayout( boxLayout, KDialog::spacingHint() ); - button = new QRadioButton( "", mDaysGroup ); + button = new TQRadioButton( "", mDaysGroup ); hbox->addWidget( button ); - mCustomDays = new QSpinBox( 1, 365, 1, mDaysGroup ); + mCustomDays = new TQSpinBox( 1, 365, 1, mDaysGroup ); mCustomDays->setEnabled( false ); hbox->addWidget( mCustomDays ); @@ -119,18 +119,18 @@ void KCMSDSummary::initGUI() layout->addMultiCellWidget( mDaysGroup, 0, 0, 0, 1 ); - mCalendarGroup = new QButtonGroup( 1, Horizontal, i18n( "Special Dates From Calendar" ), this ); + mCalendarGroup = new TQButtonGroup( 1, Horizontal, i18n( "Special Dates From Calendar" ), this ); - mShowBirthdaysFromCal = new QCheckBox( i18n( "Show birthdays" ), mCalendarGroup ); - mShowAnniversariesFromCal = new QCheckBox( i18n( "Show anniversaries" ), mCalendarGroup ); - mShowHolidays = new QCheckBox( i18n( "Show holidays" ), mCalendarGroup ); + mShowBirthdaysFromCal = new TQCheckBox( i18n( "Show birthdays" ), mCalendarGroup ); + mShowAnniversariesFromCal = new TQCheckBox( i18n( "Show anniversaries" ), mCalendarGroup ); + mShowHolidays = new TQCheckBox( i18n( "Show holidays" ), mCalendarGroup ); - mShowSpecialsFromCal = new QCheckBox( i18n( "Show special occasions" ), mCalendarGroup ); + mShowSpecialsFromCal = new TQCheckBox( i18n( "Show special occasions" ), mCalendarGroup ); - mContactGroup = new QButtonGroup( 1, Horizontal, i18n( "Special Dates From Contact List" ), this ); + mContactGroup = new TQButtonGroup( 1, Horizontal, i18n( "Special Dates From Contact List" ), this ); - mShowBirthdaysFromKAB = new QCheckBox( i18n( "Show birthdays" ), mContactGroup ); - mShowAnniversariesFromKAB = new QCheckBox( i18n( "Show anniversaries" ), mContactGroup ); + mShowBirthdaysFromKAB = new TQCheckBox( i18n( "Show birthdays" ), mContactGroup ); + mShowAnniversariesFromKAB = new TQCheckBox( i18n( "Show anniversaries" ), mContactGroup ); layout->addWidget( mCalendarGroup, 1, 0 ); layout->addWidget( mContactGroup, 1, 1 ); |