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 /korganizer/archivedialog.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 'korganizer/archivedialog.cpp')
-rw-r--r-- | korganizer/archivedialog.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/korganizer/archivedialog.cpp b/korganizer/archivedialog.cpp index 89d7ecdd4..88d20fded 100644 --- a/korganizer/archivedialog.cpp +++ b/korganizer/archivedialog.cpp @@ -24,12 +24,12 @@ // ArchiveDialog -- archive/delete past events. -#include <qlabel.h> -#include <qlayout.h> -#include <qdatetime.h> -#include <qcheckbox.h> -#include <qwhatsthis.h> -#include <qhgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqdatetime.h> +#include <tqcheckbox.h> +#include <tqwhatsthis.h> +#include <tqhgroupbox.h> #include <kdebug.h> #include <klocale.h> @@ -47,19 +47,19 @@ #include "archivedialog.h" #include "eventarchiver.h" #include <knuminput.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> #include "archivedialog.moc" -ArchiveDialog::ArchiveDialog(Calendar *cal,QWidget *parent, const char *name) +ArchiveDialog::ArchiveDialog(Calendar *cal,TQWidget *parent, const char *name) : KDialogBase (Plain,i18n("Archive/Delete Past Events and To-dos"), User1|Cancel,User1,parent,name,false,true, i18n("&Archive")) { mCalendar = cal; - QFrame *topFrame = plainPage(); - QVBoxLayout *topLayout = new QVBoxLayout(topFrame); + TQFrame *topFrame = plainPage(); + TQVBoxLayout *topLayout = new TQVBoxLayout(topFrame); topLayout->setSpacing(spacingHint()); KActiveLabel *descLabel = new KActiveLabel( @@ -74,16 +74,16 @@ ArchiveDialog::ArchiveDialog(Calendar *cal,QWidget *parent, const char *name) topFrame); topLayout->addWidget(descLabel); - QButtonGroup* radioBG = new QButtonGroup( this ); + TQButtonGroup* radioBG = new TQButtonGroup( this ); radioBG->hide(); // just for the exclusive behavior - connect( radioBG, SIGNAL( clicked( int ) ), SLOT( slotActionChanged() ) ); + connect( radioBG, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( slotActionChanged() ) ); - QHBoxLayout *dateLayout = new QHBoxLayout(0); - mArchiveOnceRB = new QRadioButton(i18n("Archive now items older than:"),topFrame); + TQHBoxLayout *dateLayout = new TQHBoxLayout(0); + mArchiveOnceRB = new TQRadioButton(i18n("Archive now items older than:"),topFrame); dateLayout->addWidget(mArchiveOnceRB); radioBG->insert(mArchiveOnceRB); mDateEdit = new KDateEdit(topFrame); - QWhatsThis::add(mDateEdit, + TQWhatsThis::add(mDateEdit, i18n("The date before which items should be archived. All older events and to-dos will " "be saved and deleted, the newer (and events exactly on that date) will be kept.")); dateLayout->addWidget(mDateEdit); @@ -91,11 +91,11 @@ ArchiveDialog::ArchiveDialog(Calendar *cal,QWidget *parent, const char *name) // Checkbox, numinput and combo for auto-archiving // (similar to kmail's mExpireFolderCheckBox/mReadExpiryTimeNumInput in kmfolderdia.cpp) - QHBox* autoArchiveHBox = new QHBox(topFrame); + TQHBox* autoArchiveHBox = new TQHBox(topFrame); topLayout->addWidget(autoArchiveHBox); - mAutoArchiveRB = new QRadioButton(i18n("Automaticall&y archive items older than:"), autoArchiveHBox); + mAutoArchiveRB = new TQRadioButton(i18n("Automaticall&y archive items older than:"), autoArchiveHBox); radioBG->insert(mAutoArchiveRB); - QWhatsThis::add(mAutoArchiveRB, + TQWhatsThis::add(mAutoArchiveRB, i18n("If this feature is enabled, KOrganizer will regularly check if events and to-dos have to be archived; " "this means you will not need to use this dialog box again, except to change the settings.")); @@ -103,25 +103,25 @@ ArchiveDialog::ArchiveDialog(Calendar *cal,QWidget *parent, const char *name) mExpiryTimeNumInput->setRange(1, 500, 1, false); mExpiryTimeNumInput->setEnabled(false); mExpiryTimeNumInput->setValue(7); - QWhatsThis::add(mExpiryTimeNumInput, + TQWhatsThis::add(mExpiryTimeNumInput, i18n("The age of the events and to-dos to archive. All older items " "will be saved and deleted, the newer will be kept.")); - mExpiryUnitsComboBox = new QComboBox(autoArchiveHBox); + mExpiryUnitsComboBox = new TQComboBox(autoArchiveHBox); // Those items must match the "Expiry Unit" enum in the kcfg file! mExpiryUnitsComboBox->insertItem(i18n("Day(s)")); mExpiryUnitsComboBox->insertItem(i18n("Week(s)")); mExpiryUnitsComboBox->insertItem(i18n("Month(s)")); mExpiryUnitsComboBox->setEnabled(false); - QHBoxLayout *fileLayout = new QHBoxLayout(0); + TQHBoxLayout *fileLayout = new TQHBoxLayout(0); fileLayout->setSpacing(spacingHint()); - QLabel *l = new QLabel(i18n("Archive &file:"),topFrame); + TQLabel *l = new TQLabel(i18n("Archive &file:"),topFrame); fileLayout->addWidget(l); mArchiveFile = new KURLRequester(KOPrefs::instance()->mArchiveFile,topFrame); mArchiveFile->setMode(KFile::File); mArchiveFile->setFilter(i18n("*.ics|iCalendar Files")); - QWhatsThis::add(mArchiveFile, + TQWhatsThis::add(mArchiveFile, i18n("The path of the archive. The events and to-dos will be added to the " "archive file, so any events that are already in the file " "will not be modified or deleted. You can later load or merge the " @@ -131,26 +131,26 @@ ArchiveDialog::ArchiveDialog(Calendar *cal,QWidget *parent, const char *name) fileLayout->addWidget(mArchiveFile); topLayout->addLayout(fileLayout); - QHGroupBox *typeBox = new QHGroupBox( i18n("Type of Items to Archive"), + TQHGroupBox *typeBox = new TQHGroupBox( i18n("Type of Items to Archive"), topFrame); - mEvents = new QCheckBox( i18n("&Events"), typeBox ); - mTodos = new QCheckBox( i18n("&To-dos"), typeBox ); + mEvents = new TQCheckBox( i18n("&Events"), typeBox ); + mTodos = new TQCheckBox( i18n("&To-dos"), typeBox ); topLayout->addWidget( typeBox ); - QWhatsThis::add( typeBox, i18n("Here you can select which items " + TQWhatsThis::add( typeBox, i18n("Here you can select which items " "should be archived. Events are archived if they " "ended before the date given above; to-dos are archived if " "they were finished before the date.") ); - mDeleteCb = new QCheckBox(i18n("&Delete only, do not save"), + mDeleteCb = new TQCheckBox(i18n("&Delete only, do not save"), topFrame); - QWhatsThis::add(mDeleteCb, + TQWhatsThis::add(mDeleteCb, i18n("Select this option to delete old events and to-dos without saving them. " "It is not possible to recover the events later.")); topLayout->addWidget(mDeleteCb); - connect(mDeleteCb, SIGNAL(toggled(bool)), mArchiveFile, SLOT(setDisabled(bool))); - connect(mDeleteCb, SIGNAL(toggled(bool)), this, SLOT(slotEnableUser1())); - connect(mArchiveFile->lineEdit(),SIGNAL(textChanged ( const QString & )), - this,SLOT(slotEnableUser1())); + connect(mDeleteCb, TQT_SIGNAL(toggled(bool)), mArchiveFile, TQT_SLOT(setDisabled(bool))); + connect(mDeleteCb, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotEnableUser1())); + connect(mArchiveFile->lineEdit(),TQT_SIGNAL(textChanged ( const TQString & )), + this,TQT_SLOT(slotEnableUser1())); // Load settings from KOPrefs mExpiryTimeNumInput->setValue( KOPrefs::instance()->mExpiryTime ); @@ -194,7 +194,7 @@ void ArchiveDialog::slotActionChanged() void ArchiveDialog::slotUser1() { EventArchiver archiver; - connect( &archiver, SIGNAL( eventsDeleted() ), this, SLOT( slotEventsDeleted() ) ); + connect( &archiver, TQT_SIGNAL( eventsDeleted() ), this, TQT_SLOT( slotEventsDeleted() ) ); KOPrefs::instance()->mAutoArchive = mAutoArchiveRB->isChecked(); KOPrefs::instance()->mExpiryTime = mExpiryTimeNumInput->value(); @@ -212,7 +212,7 @@ void ArchiveDialog::slotUser1() return; } // Force filename to be ending with vCalendar extension - QString filename = destUrl.fileName(); + TQString filename = destUrl.fileName(); if (!filename.endsWith(".vcs") && !filename.endsWith(".ics")) { filename.append(".ics"); destUrl.setFileName(filename); |