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/filtereditdialog.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/filtereditdialog.cpp')
-rw-r--r-- | korganizer/filtereditdialog.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/korganizer/filtereditdialog.cpp b/korganizer/filtereditdialog.cpp index 72bf89023..32138bffb 100644 --- a/korganizer/filtereditdialog.cpp +++ b/korganizer/filtereditdialog.cpp @@ -24,13 +24,13 @@ without including the source code for Qt in the source distribution. */ -#include <qpushbutton.h> -#include <qcheckbox.h> -#include <qbuttongroup.h> -#include <qlineedit.h> -#include <qradiobutton.h> -#include <qlistbox.h> -#include <qwhatsthis.h> +#include <tqpushbutton.h> +#include <tqcheckbox.h> +#include <tqbuttongroup.h> +#include <tqlineedit.h> +#include <tqradiobutton.h> +#include <tqlistbox.h> +#include <tqwhatsthis.h> #include <kdebug.h> #include <klocale.h> @@ -46,18 +46,18 @@ #include "filtereditdialog.h" #include "filtereditdialog.moc" -FilterEditDialog::FilterEditDialog( QPtrList<CalFilter> *filters, - QWidget *parent, const char *name) +FilterEditDialog::FilterEditDialog( TQPtrList<CalFilter> *filters, + TQWidget *parent, const char *name) : KDialogBase( parent, name, false, i18n("Edit Calendar Filters"), Ok | Apply | Cancel ) { setMainWidget( mFilterEdit = new FilterEdit(filters, this)); - connect(mFilterEdit, SIGNAL(dataConsistent(bool)), - SLOT(setDialogConsistent(bool))); + connect(mFilterEdit, TQT_SIGNAL(dataConsistent(bool)), + TQT_SLOT(setDialogConsistent(bool))); updateFilterList(); - connect( mFilterEdit, SIGNAL( editCategories() ), SIGNAL( editCategories() ) ); - connect( mFilterEdit, SIGNAL( filterChanged() ), SIGNAL( filterChanged() ) ); + connect( mFilterEdit, TQT_SIGNAL( editCategories() ), TQT_SIGNAL( editCategories() ) ); + connect( mFilterEdit, TQT_SIGNAL( filterChanged() ), TQT_SIGNAL( filterChanged() ) ); } FilterEditDialog::~FilterEditDialog() @@ -92,18 +92,18 @@ void FilterEditDialog::setDialogConsistent(bool consistent) { enableButtonApply( consistent ); } -FilterEdit::FilterEdit(QPtrList<CalFilter> *filters, QWidget *parent) +FilterEdit::FilterEdit(TQPtrList<CalFilter> *filters, TQWidget *parent) : FilterEdit_base( parent), current(0), mCategorySelectDialog( 0 ) { mFilters = filters; - QWhatsThis::add( mNewButton, i18n( "Press this button to define a new filter." ) ); - QWhatsThis::add( mDeleteButton, i18n( "Press this button to remove the currently active filter." ) ); + TQWhatsThis::add( mNewButton, i18n( "Press this button to define a new filter." ) ); + TQWhatsThis::add( mDeleteButton, i18n( "Press this button to remove the currently active filter." ) ); - connect( mRulesList, SIGNAL(selectionChanged()), this, SLOT(filterSelected()) ); - connect( mNewButton, SIGNAL( clicked() ), SLOT( bNewPressed() ) ); - connect( mDeleteButton, SIGNAL( clicked() ), SLOT( bDeletePressed() ) ); - connect( mNameLineEdit, SIGNAL( textChanged(const QString &) ), SLOT( updateSelectedName(const QString &) ) ); - connect( mCatEditButton, SIGNAL( clicked() ), SLOT( editCategorySelection() ) ); + connect( mRulesList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(filterSelected()) ); + connect( mNewButton, TQT_SIGNAL( clicked() ), TQT_SLOT( bNewPressed() ) ); + connect( mDeleteButton, TQT_SIGNAL( clicked() ), TQT_SLOT( bDeletePressed() ) ); + connect( mNameLineEdit, TQT_SIGNAL( textChanged(const TQString &) ), TQT_SLOT( updateSelectedName(const TQString &) ) ); + connect( mCatEditButton, TQT_SIGNAL( clicked() ), TQT_SLOT( editCategorySelection() ) ); } FilterEdit::~FilterEdit() { @@ -151,7 +151,7 @@ void FilterEdit::saveChanges() current->setCriteria( criteria ); current->setCompletedTimeSpan( mCompletedTimeSpan->value() ); - QStringList categoryList; + TQStringList categoryList; for( uint i = 0; i < mCatList->count(); ++i ) categoryList.append( mCatList->text( i ) ); current->setCategoryList( categoryList ); @@ -211,7 +211,7 @@ void FilterEdit::bDeletePressed() { emit filterChanged(); } -void FilterEdit::updateSelectedName(const QString &newText) { +void FilterEdit::updateSelectedName(const TQString &newText) { mRulesList->blockSignals( true ); mRulesList->changeItem(newText, mRulesList->currentItem()); mRulesList->blockSignals( false ); @@ -231,10 +231,10 @@ void FilterEdit::editCategorySelection() if ( !mCategorySelectDialog ) { mCategorySelectDialog = new KPIM::CategorySelectDialog( KOPrefs::instance(), this, "filterCatSelect" ); connect( mCategorySelectDialog, - SIGNAL( categoriesSelected( const QStringList & ) ), - SLOT( updateCategorySelection( const QStringList & ) ) ); - connect( mCategorySelectDialog, SIGNAL( editCategories() ), - SIGNAL( editCategories() ) ); + TQT_SIGNAL( categoriesSelected( const TQStringList & ) ), + TQT_SLOT( updateCategorySelection( const TQStringList & ) ) ); + connect( mCategorySelectDialog, TQT_SIGNAL( editCategories() ), + TQT_SIGNAL( editCategories() ) ); } mCategorySelectDialog->setSelected( current->categoryList() ); @@ -242,7 +242,7 @@ void FilterEdit::editCategorySelection() mCategorySelectDialog->show(); } -void FilterEdit::updateCategorySelection( const QStringList &categories ) +void FilterEdit::updateCategorySelection( const TQStringList &categories ) { mCatList->clear(); mCatList->insertStringList(categories); |