diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 12:43:24 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-02 09:12:11 +0900 |
commit | dadec5db2e0816d60fce98ca30da1b008dd05b4c (patch) | |
tree | 0c02c77b79bcfd9c6f98cc5bb6596935dfcfb0bb /kmymoney2/widgets | |
parent | cde62dc2652ece3f25d6ab50f3a66cd78f7f10da (diff) | |
download | kmymoney-dadec5db.tar.gz kmymoney-dadec5db.zip |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8ea77e27d61983f4ca5fe73d627fc000712abe9d)
Diffstat (limited to 'kmymoney2/widgets')
-rw-r--r-- | kmymoney2/widgets/kmymoneyaccountcombo.cpp | 4 | ||||
-rw-r--r-- | kmymoney2/widgets/kmymoneyaccounttreebase.cpp | 2 | ||||
-rw-r--r-- | kmymoney2/widgets/kmymoneyaccounttreebase.h | 4 | ||||
-rw-r--r-- | kmymoney2/widgets/kmymoneycalculator.cpp | 2 | ||||
-rw-r--r-- | kmymoney2/widgets/kmymoneycalendar.cpp | 2 | ||||
-rw-r--r-- | kmymoney2/widgets/kmymoneycategory.h | 2 | ||||
-rw-r--r-- | kmymoney2/widgets/register.cpp | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/widgets/kmymoneyaccountcombo.cpp b/kmymoney2/widgets/kmymoneyaccountcombo.cpp index 897e72b..58cc205 100644 --- a/kmymoney2/widgets/kmymoneyaccountcombo.cpp +++ b/kmymoney2/widgets/kmymoneyaccountcombo.cpp @@ -171,7 +171,7 @@ void KMyMoneyAccountCombo::mousePressEvent(TQMouseEvent *e) } bool hit = rect().contains( e->pos() ); if ( hit ) { // mouse press on button - m_mlbDown = TRUE; // left mouse button down + m_mlbDown = true; // left mouse button down emit pressed(); } } @@ -184,7 +184,7 @@ void KMyMoneyAccountCombo::mouseReleaseEvent(TQMouseEvent *e) } if ( !m_mlbDown ) return; - m_mlbDown = FALSE; // left mouse button up + m_mlbDown = false; // left mouse button up emit released(); if ( rect().contains( e->pos() ) ) { // mouse release on button emit clicked(); diff --git a/kmymoney2/widgets/kmymoneyaccounttreebase.cpp b/kmymoney2/widgets/kmymoneyaccounttreebase.cpp index c6016b3..31173c9 100644 --- a/kmymoney2/widgets/kmymoneyaccounttreebase.cpp +++ b/kmymoney2/widgets/kmymoneyaccounttreebase.cpp @@ -383,7 +383,7 @@ void KMyMoneyAccountTreeBase::slotOpenFolder(void) { m_autoopenTimer.stop(); if ( m_dropItem && !m_dropItem->isOpen() ) { - m_dropItem->setOpen( TRUE ); + m_dropItem->setOpen( true ); m_dropItem->repaint(); } } diff --git a/kmymoney2/widgets/kmymoneyaccounttreebase.h b/kmymoney2/widgets/kmymoneyaccounttreebase.h index 086b87b..8a7b90f 100644 --- a/kmymoney2/widgets/kmymoneyaccounttreebase.h +++ b/kmymoney2/widgets/kmymoneyaccounttreebase.h @@ -351,9 +351,9 @@ public: int compare(TQListViewItem* i, int col, bool ascending) const; /** - * If o is TRUE all child items are shown initially. The user can + * If o is true all child items are shown initially. The user can * hide them by clicking the - icon to the left of the item. If - * o is FALSE, the children of this item are initially hidden. + * o is false, the children of this item are initially hidden. * The user can show them by clicking the + icon to the left of the item. * * Overrides TDEListViewItem::setOpen() and exchanges the value field diff --git a/kmymoney2/widgets/kmymoneycalculator.cpp b/kmymoney2/widgets/kmymoneycalculator.cpp index e540de4..9e26999 100644 --- a/kmymoney2/widgets/kmymoneycalculator.cpp +++ b/kmymoney2/widgets/kmymoneycalculator.cpp @@ -164,7 +164,7 @@ void kMyMoneyCalculator::commaClicked(void) { if(operand.length() == 0) operand = "0"; - if(operand.contains('.', FALSE) == 0) + if(operand.contains('.', false) == 0) operand.append('.'); if(operand.length() > 16) diff --git a/kmymoney2/widgets/kmymoneycalendar.cpp b/kmymoney2/widgets/kmymoneycalendar.cpp index 228b5e2..7c5549c 100644 --- a/kmymoney2/widgets/kmymoneycalendar.cpp +++ b/kmymoney2/widgets/kmymoneycalendar.cpp @@ -174,7 +174,7 @@ kMyMoneyCalendar::eventFilter(TQObject *o, TQEvent *e ) { TQApplication::sendEvent( table, e ); table->setFocus(); - return TRUE; // eat event + return true; // eat event } } return TQFrame::eventFilter( o, e ); diff --git a/kmymoney2/widgets/kmymoneycategory.h b/kmymoney2/widgets/kmymoneycategory.h index 90bd4a4..6f3068d 100644 --- a/kmymoney2/widgets/kmymoneycategory.h +++ b/kmymoney2/widgets/kmymoneycategory.h @@ -111,7 +111,7 @@ public: /** * Reimplemented for internal reasons. No API change */ - virtual void reparent( TQWidget *parent, WFlags, const TQPoint &, bool showIt = FALSE ); + virtual void reparent( TQWidget *parent, WFlags, const TQPoint &, bool showIt = false ); /** * Reimplemented for internal reasons. No API change. diff --git a/kmymoney2/widgets/register.cpp b/kmymoney2/widgets/register.cpp index 788fee3..b6dafcd 100644 --- a/kmymoney2/widgets/register.cpp +++ b/kmymoney2/widgets/register.cpp @@ -1438,7 +1438,7 @@ void Register::repaintItems(RegisterItem* first, RegisterItem* last) TQApplication::eventLoop()->processEvents(TQEventLoop::ExcludeUserInput, 10); } m_lastRepaintRect = r; - TQApplication::postEvent( viewport(), new TQPaintEvent( r, FALSE ) ); + TQApplication::postEvent( viewport(), new TQPaintEvent( r, false ) ); } |