summaryrefslogtreecommitdiffstats
path: root/libkdepim/categoryselectdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/categoryselectdialog.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 'libkdepim/categoryselectdialog.cpp')
-rw-r--r--libkdepim/categoryselectdialog.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/libkdepim/categoryselectdialog.cpp b/libkdepim/categoryselectdialog.cpp
index 51090290a..4eb072b12 100644
--- a/libkdepim/categoryselectdialog.cpp
+++ b/libkdepim/categoryselectdialog.cpp
@@ -20,9 +20,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qlistview.h>
-#include <qpushbutton.h>
-#include <qheader.h>
+#include <tqlistview.h>
+#include <tqpushbutton.h>
+#include <tqheader.h>
#include "categoryselectdialog_base.h"
#include <klocale.h>
@@ -32,7 +32,7 @@
using namespace KPIM;
-CategorySelectDialog::CategorySelectDialog( KPimPrefs *prefs, QWidget* parent,
+CategorySelectDialog::CategorySelectDialog( KPimPrefs *prefs, TQWidget* parent,
const char* name, bool modal )
: KDialogBase::KDialogBase( parent, name, modal,
i18n("Select Categories"), Ok|Apply|Cancel|Help, Ok, true ),
@@ -44,18 +44,18 @@ CategorySelectDialog::CategorySelectDialog( KPimPrefs *prefs, QWidget* parent,
setCategories();
- connect( mWidget->mButtonEdit, SIGNAL(clicked()),
- SIGNAL(editCategories()) );
- connect( mWidget->mButtonClear, SIGNAL(clicked()),
- SLOT(clear()) );
+ connect( mWidget->mButtonEdit, TQT_SIGNAL(clicked()),
+ TQT_SIGNAL(editCategories()) );
+ connect( mWidget->mButtonClear, TQT_SIGNAL(clicked()),
+ TQT_SLOT(clear()) );
}
-void CategorySelectDialog::setCategories( const QStringList &categoryList )
+void CategorySelectDialog::setCategories( const TQStringList &categoryList )
{
mWidget->mCategories->clear();
mCategoryList.clear();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = categoryList.begin(); it != categoryList.end(); ++it )
if ( mPrefs->mCustomCategories.find( *it ) == mPrefs->mCustomCategories.end() )
@@ -63,7 +63,7 @@ void CategorySelectDialog::setCategories( const QStringList &categoryList )
for ( it = mPrefs->mCustomCategories.begin();
it != mPrefs->mCustomCategories.end(); ++it ) {
- new QCheckListItem( mWidget->mCategories, *it, QCheckListItem::CheckBox );
+ new TQCheckListItem( mWidget->mCategories, *it, TQCheckListItem::CheckBox );
}
}
@@ -71,40 +71,40 @@ CategorySelectDialog::~CategorySelectDialog()
{
}
-void CategorySelectDialog::setSelected(const QStringList &selList)
+void CategorySelectDialog::setSelected(const TQStringList &selList)
{
clear();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = selList.begin(); it != selList.end(); ++it ) {
- QCheckListItem *item = (QCheckListItem *)mWidget->mCategories->firstChild();
+ TQCheckListItem *item = (TQCheckListItem *)mWidget->mCategories->firstChild();
while (item) {
if (item->text() == *it) {
item->setOn(true);
break;
}
- item = (QCheckListItem *)item->nextSibling();
+ item = (TQCheckListItem *)item->nextSibling();
}
}
}
-QStringList CategorySelectDialog::selectedCategories() const
+TQStringList CategorySelectDialog::selectedCategories() const
{
return mCategoryList;
}
void CategorySelectDialog::slotApply()
{
- QStringList categories;
- QCheckListItem *item = (QCheckListItem *)mWidget->mCategories->firstChild();
+ TQStringList categories;
+ TQCheckListItem *item = (TQCheckListItem *)mWidget->mCategories->firstChild();
while (item) {
if (item->isOn()) {
categories.append(item->text());
}
- item = (QCheckListItem *)item->nextSibling();
+ item = (TQCheckListItem *)item->nextSibling();
}
- QString categoriesStr = categories.join(", ");
+ TQString categoriesStr = categories.join(", ");
mCategoryList = categories;
@@ -120,22 +120,22 @@ void CategorySelectDialog::slotOk()
void CategorySelectDialog::clear()
{
- QCheckListItem *item = (QCheckListItem *)mWidget->mCategories->firstChild();
+ TQCheckListItem *item = (TQCheckListItem *)mWidget->mCategories->firstChild();
while (item) {
item->setOn(false);
- item = (QCheckListItem *)item->nextSibling();
+ item = (TQCheckListItem *)item->nextSibling();
}
}
void CategorySelectDialog::updateCategoryConfig()
{
- QStringList selected;
- QCheckListItem *item = (QCheckListItem *)mWidget->mCategories->firstChild();
+ TQStringList selected;
+ TQCheckListItem *item = (TQCheckListItem *)mWidget->mCategories->firstChild();
while (item) {
if (item->isOn()) {
selected.append(item->text());
}
- item = (QCheckListItem *)item->nextSibling();
+ item = (TQCheckListItem *)item->nextSibling();
}
setCategories();