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/korganizer/kcmkorgsummary.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/korganizer/kcmkorgsummary.cpp')
-rw-r--r-- | kontact/plugins/korganizer/kcmkorgsummary.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kontact/plugins/korganizer/kcmkorgsummary.cpp b/kontact/plugins/korganizer/kcmkorgsummary.cpp index 9ab0b6838..2a4b6a3e1 100644 --- a/kontact/plugins/korganizer/kcmkorgsummary.cpp +++ b/kontact/plugins/korganizer/kcmkorgsummary.cpp @@ -21,11 +21,11 @@ without including the source code for Qt in the source distribution. */ -#include <qbuttongroup.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qradiobutton.h> -#include <qspinbox.h> +#include <tqbuttongroup.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqradiobutton.h> +#include <tqspinbox.h> #include <kaboutdata.h> #include <kapplication.h> @@ -41,24 +41,24 @@ extern "C" { - KDE_EXPORT KCModule *create_korgsummary( QWidget *parent, const char * ) + KDE_EXPORT KCModule *create_korgsummary( TQWidget *parent, const char * ) { return new KCMKOrgSummary( parent, "kcmkorgsummary" ); } } -KCMKOrgSummary::KCMKOrgSummary( QWidget *parent, const char *name ) +KCMKOrgSummary::KCMKOrgSummary( TQWidget *parent, const char *name ) : KCModule( parent, name ) { initGUI(); customDaysChanged( 1 ); - connect( mCalendarGroup, SIGNAL( clicked( int ) ), SLOT( modified() ) ); - connect( mCalendarGroup, SIGNAL( clicked( int ) ), SLOT( buttonClicked( int ) ) ); - connect( mTodoGroup, SIGNAL( clicked( int ) ), SLOT( modified() ) ); - connect( mCustomDays, SIGNAL( valueChanged( int ) ), SLOT( modified() ) ); - connect( mCustomDays, SIGNAL( valueChanged( int ) ), SLOT( customDaysChanged( int ) ) ); + connect( mCalendarGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( modified() ) ); + connect( mCalendarGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( buttonClicked( int ) ) ); + connect( mTodoGroup, 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 ); @@ -90,33 +90,33 @@ void KCMKOrgSummary::customDaysChanged( int value ) void KCMKOrgSummary::initGUI() { - QVBoxLayout *layout = new QVBoxLayout( this, 0, KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); - mCalendarGroup = new QButtonGroup( 0, Vertical, i18n( "Appointments" ), this ); - QVBoxLayout *boxLayout = new QVBoxLayout( mCalendarGroup->layout(), + mCalendarGroup = new TQButtonGroup( 0, Vertical, i18n( "Appointments" ), this ); + TQVBoxLayout *boxLayout = new TQVBoxLayout( mCalendarGroup->layout(), KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n( "How many days should the calendar show at once?" ), mCalendarGroup ); + TQLabel *label = new TQLabel( i18n( "How many days should the calendar show at once?" ), mCalendarGroup ); boxLayout->addWidget( label ); - QRadioButton *button = new QRadioButton( i18n( "One day" ), mCalendarGroup ); + TQRadioButton *button = new TQRadioButton( i18n( "One day" ), mCalendarGroup ); boxLayout->addWidget( button ); - button = new QRadioButton( i18n( "Five days" ), mCalendarGroup ); + button = new TQRadioButton( i18n( "Five days" ), mCalendarGroup ); boxLayout->addWidget( button ); - button = new QRadioButton( i18n( "One week" ), mCalendarGroup ); + button = new TQRadioButton( i18n( "One week" ), mCalendarGroup ); boxLayout->addWidget( button ); - button = new QRadioButton( i18n( "One month" ), mCalendarGroup ); + button = new TQRadioButton( i18n( "One month" ), mCalendarGroup ); boxLayout->addWidget( button ); - QHBoxLayout *hbox = new QHBoxLayout( boxLayout, KDialog::spacingHint() ); + TQHBoxLayout *hbox = new TQHBoxLayout( boxLayout, KDialog::spacingHint() ); - button = new QRadioButton( "", mCalendarGroup ); + button = new TQRadioButton( "", mCalendarGroup ); hbox->addWidget( button ); - mCustomDays = new QSpinBox( 1, 365, 1, mCalendarGroup ); + mCustomDays = new TQSpinBox( 1, 365, 1, mCalendarGroup ); mCustomDays->setEnabled( false ); hbox->addWidget( mCustomDays ); @@ -124,9 +124,9 @@ void KCMKOrgSummary::initGUI() layout->addWidget( mCalendarGroup ); - mTodoGroup = new QButtonGroup( 2, Horizontal, i18n( "To-dos" ), this ); - new QRadioButton( i18n( "Show all to-dos" ), mTodoGroup ); - new QRadioButton( i18n( "Show today's to-dos only" ), mTodoGroup ); + mTodoGroup = new TQButtonGroup( 2, Horizontal, i18n( "To-dos" ), this ); + new TQRadioButton( i18n( "Show all to-dos" ), mTodoGroup ); + new TQRadioButton( i18n( "Show today's to-dos only" ), mTodoGroup ); layout->addWidget( mTodoGroup ); |