summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs')
-rw-r--r--kmymoney2/dialogs/kmymoneysplittable.cpp2
-rw-r--r--kmymoney2/dialogs/tdeselecttransactionsdlg.cpp2
-rw-r--r--kmymoney2/dialogs/transactioneditor.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/kmymoney2/dialogs/kmymoneysplittable.cpp b/kmymoney2/dialogs/kmymoneysplittable.cpp
index 231aaf8..6f62d44 100644
--- a/kmymoney2/dialogs/kmymoneysplittable.cpp
+++ b/kmymoney2/dialogs/kmymoneysplittable.cpp
@@ -324,7 +324,7 @@ bool kMyMoneySplitTable::eventFilter(TQObject *o, TQEvent *e)
// in case we have the 'enter moves focus between fields', we need to simulate
// a TAB key when the object 'o' points to the category or memo field.
if(KMyMoneyGlobalSettings::enterMovesBetweenFields()) {
- if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_editCategory->lineEdit()) || TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_editMemo)) {
+ if(o == m_editCategory->lineEdit() || o == m_editMemo) {
terminate = false;
TQKeyEvent evt(e->type(),
Key_Tab, 0, k->state(), TQString(),
diff --git a/kmymoney2/dialogs/tdeselecttransactionsdlg.cpp b/kmymoney2/dialogs/tdeselecttransactionsdlg.cpp
index 7c7a03f..caedd5f 100644
--- a/kmymoney2/dialogs/tdeselecttransactionsdlg.cpp
+++ b/kmymoney2/dialogs/tdeselecttransactionsdlg.cpp
@@ -153,7 +153,7 @@ bool TDESelectTransactionsDlg::eventFilter(TQObject* o, TQEvent* e)
bool rc = false;
TQKeyEvent* k;
- if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_register)) {
+ if(o == m_register) {
switch(e->type()) {
case TQEvent::KeyPress:
k = dynamic_cast<TQKeyEvent*>(e);
diff --git a/kmymoney2/dialogs/transactioneditor.cpp b/kmymoney2/dialogs/transactioneditor.cpp
index b63e8c1..3cd3183 100644
--- a/kmymoney2/dialogs/transactioneditor.cpp
+++ b/kmymoney2/dialogs/transactioneditor.cpp
@@ -153,7 +153,7 @@ void TransactionEditor::slotReloadEditWidgets(void)
bool TransactionEditor::eventFilter(TQObject* o, TQEvent* e)
{
bool rc = false;
- if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(haveWidget("number"))) {
+ if(o == haveWidget("number")) {
if(e->type() == TQEvent::MouseButtonDblClick) {
emit assignNumber();
rc = true;
@@ -180,7 +180,7 @@ bool TransactionEditor::eventFilter(TQObject* o, TQEvent* e)
// we treat the return/enter key as such.
if(KMyMoneyGlobalSettings::enterMovesBetweenFields()) {
for(it_w = m_finalEditWidgets.begin(); !isFinal && it_w != m_finalEditWidgets.end(); ++it_w) {
- if(TQT_BASE_OBJECT_CONST(*it_w) == TQT_BASE_OBJECT(o)) {
+ if(*it_w == o) {
if(dynamic_cast<const kMyMoneyEdit*>(*it_w)) {
isFinal = !(dynamic_cast<const kMyMoneyEdit*>(*it_w)->value().isZero());
} else