summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kcategoryreassigndlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs/kcategoryreassigndlg.cpp')
-rw-r--r--kmymoney2/dialogs/kcategoryreassigndlg.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kmymoney2/dialogs/kcategoryreassigndlg.cpp b/kmymoney2/dialogs/kcategoryreassigndlg.cpp
index f457134..3bead48 100644
--- a/kmymoney2/dialogs/kcategoryreassigndlg.cpp
+++ b/kmymoney2/dialogs/kcategoryreassigndlg.cpp
@@ -36,12 +36,12 @@
#include <kmymoney/kmymoneyaccountselector.h>
#include <kmymoney/kguiutils.h>
-KCategoryReassignDlg::KCategoryReassignDlg( QWidget* parent, const char* name) :
- KCategoryReassignDlgDecl( parent, name)
+KCategoryReassignDlg::KCategoryReassignDlg( TQWidget* tqparent, const char* name) :
+ KCategoryReassignDlgDecl( tqparent, name)
{
buttonOk->setGuiItem(KStdGuiItem::ok());
buttonCancel->setGuiItem(KStdGuiItem::cancel());
- kMandatoryFieldGroup* mandatory = new kMandatoryFieldGroup(this);
+ kMandatoryFieldGroup* mandatory = new kMandatoryFieldGroup(TQT_TQOBJECT(this));
mandatory->add(m_category);
mandatory->setOkButton(buttonOk);
}
@@ -50,10 +50,10 @@ KCategoryReassignDlg::~KCategoryReassignDlg()
{
}
-QString KCategoryReassignDlg::show(const MyMoneyAccount& category)
+TQString KCategoryReassignDlg::show(const MyMoneyAccount& category)
{
if (category.id().isEmpty())
- return QString(); // no payee available? nothing can be selected...
+ return TQString(); // no payee available? nothing can be selected...
AccountSet set;
set.addAccountGroup(MyMoneyAccount::Income);
@@ -64,8 +64,8 @@ QString KCategoryReassignDlg::show(const MyMoneyAccount& category)
m_category->selector()->removeItem(category.id());
// make sure the available categories have the same currency
- QStringList list;
- QStringList::const_iterator it_a;
+ TQStringList list;
+ TQStringList::const_iterator it_a;
m_category->selector()->itemList(list);
for(it_a = list.begin(); it_a != list.end(); ++it_a) {
MyMoneyAccount acc = MyMoneyFile::instance()->account(*it_a);
@@ -78,13 +78,13 @@ QString KCategoryReassignDlg::show(const MyMoneyAccount& category)
// if there is no category for reassignment left, we bail out
if(list.isEmpty()) {
- KMessageBox::sorry(this, QString("<qt>")+i18n("At least one transaction/schedule still references the category <b>%1</b>. However, at least one category with the same currency must exist so that the transactions/schedules can be reassigned.").arg(category.name())+QString("</qt>"));
- return QString();
+ KMessageBox::sorry(this, TQString("<qt>")+i18n("At least one transaction/schedule still references the category <b>%1</b>. However, at least one category with the same currency must exist so that the transactions/schedules can be reassigned.").tqarg(category.name())+TQString("</qt>"));
+ return TQString();
}
// execute dialog and if aborted, return empty string
- if (this->exec() == QDialog::Rejected)
- return QString();
+ if (this->exec() == TQDialog::Rejected)
+ return TQString();
// otherwise return index of selected payee
return m_category->selectedItem();