summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-12 18:43:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-16 19:15:41 +0900
commitba6005e901224a5f03b58e975a1b452ef61ae8ec (patch)
tree6e581a55f270d501f80a9a9681da703afedc41ed /kmymoney2/widgets
parenta266dff036219bfe8687956cbb05861ae26f0d1b (diff)
downloadkmymoney-ba6005e901224a5f03b58e975a1b452ef61ae8ec.tar.gz
kmymoney-ba6005e901224a5f03b58e975a1b452ef61ae8ec.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmymoney2/widgets')
-rw-r--r--kmymoney2/widgets/kmymoneycompletion.cpp2
-rw-r--r--kmymoney2/widgets/register.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/kmymoney2/widgets/kmymoneycompletion.cpp b/kmymoney2/widgets/kmymoneycompletion.cpp
index 8a4b599..529ec7f 100644
--- a/kmymoney2/widgets/kmymoneycompletion.cpp
+++ b/kmymoney2/widgets/kmymoneycompletion.cpp
@@ -169,7 +169,7 @@ bool kMyMoneyCompletion::eventFilter(TQObject* o, TQEvent* e)
KMyMoneyCombo *c = dynamic_cast<KMyMoneyCombo*>(m_parent);
TQListViewItem* item;
- if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_parent) || (c && TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(c->lineEdit()))) {
+ if(o == m_parent || (c && o == c->lineEdit())) {
if(isVisible()) {
if(type == TQEvent::KeyPress) {
TQKeyEvent* ev = TQT_TQKEYEVENT (e);
diff --git a/kmymoney2/widgets/register.cpp b/kmymoney2/widgets/register.cpp
index b52dff4..7fcb242 100644
--- a/kmymoney2/widgets/register.cpp
+++ b/kmymoney2/widgets/register.cpp
@@ -679,7 +679,7 @@ void Register::slotAutoColumnSizing(int section)
bool Register::eventFilter(TQObject* o, TQEvent* e)
{
- if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(horizontalHeader()) && e->type() == TQEvent::MouseButtonPress) {
+ if(o == horizontalHeader() && e->type() == TQEvent::MouseButtonPress) {
TQMouseEvent *me = dynamic_cast<TQMouseEvent*>(e);
if(me->button() == Qt::RightButton) {
emit headerClicked();
@@ -687,13 +687,13 @@ bool Register::eventFilter(TQObject* o, TQEvent* e)
// eat up left mouse button press for now
return true;
- } else if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(horizontalHeader()) && e->type() == TQEvent::Paint) {
+ } else if(o == horizontalHeader() && e->type() == TQEvent::Paint) {
// always show the header in bold (to suppress cell selection)
TQFont f(horizontalHeader()->font());
f.setBold(true);
horizontalHeader()->setFont(f);
- } else if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this) && e->type() == TQEvent::KeyPress) {
+ } else if(o == this && e->type() == TQEvent::KeyPress) {
TQKeyEvent* ke = dynamic_cast<TQKeyEvent*>(e);
if(ke->key() == TQt::Key_Menu) {
emit openContextMenu();