From 0008104748e6613c41d60b0545c07ed34e16ddec Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 5 Nov 2023 11:54:03 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro (cherry picked from commit 96c67c9b3924ab034d3d34aa03d3ea7cf0746587) --- kmymoney2/widgets/register.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kmymoney2/widgets/register.cpp') diff --git a/kmymoney2/widgets/register.cpp b/kmymoney2/widgets/register.cpp index 7fcb242..7ea8796 100644 --- a/kmymoney2/widgets/register.cpp +++ b/kmymoney2/widgets/register.cpp @@ -425,7 +425,7 @@ void SimpleDateGroupMarker::paintRegisterCell(TQPainter* painter, int row, int / cg.setColor(TQColorGroup::Base, KMyMoneyGlobalSettings::listBGColor()); TQBrush backgroundBrush(cg.base()); // backgroundBrush.setStyle(TQt::DiagCrossPattern); - backgroundBrush.setStyle(Qt::Dense5Pattern); + backgroundBrush.setStyle(TQt::Dense5Pattern); backgroundBrush.setColor(KMyMoneyGlobalSettings::listGridColor()); painter->eraseRect(cellRect); painter->fillRect(cellRect, backgroundBrush); @@ -681,7 +681,7 @@ bool Register::eventFilter(TQObject* o, TQEvent* e) { if(o == horizontalHeader() && e->type() == TQEvent::MouseButtonPress) { TQMouseEvent *me = dynamic_cast(e); - if(me->button() == Qt::RightButton) { + if(me->button() == TQt::RightButton) { emit headerClicked(); } // eat up left mouse button press for now @@ -1590,12 +1590,12 @@ void Register::selectItem(int row, int col, int button, const TQPoint& /* mouseP Transaction* t = dynamic_cast(item); if(t) { if(!id.isEmpty()) { - switch(button & Qt::MouseButtonMask) { - case Qt::RightButton: + switch(button & TQt::MouseButtonMask) { + case TQt::RightButton: emit openContextMenu(); break; - case Qt::LeftButton: + case TQt::LeftButton: if(t && col == ReconcileFlagColumn && selectedItemsCount() == 1 && !t->isScheduled()) emit reconcileStateColumnClicked(t); break; @@ -1659,7 +1659,7 @@ void Register::selectItem(RegisterItem* item, bool dontChangeSelections) // kdDebug(2) << "Register::selectItem(" << item << "): type is " << typeid(*item).name() << endl; TQt::ButtonState buttonState = m_buttonState; - m_buttonState = Qt::NoButton; + m_buttonState = TQt::NoButton; if(m_selectionMode == NoSelection) return; @@ -1675,7 +1675,7 @@ void Register::selectItem(RegisterItem* item, bool dontChangeSelections) sameEntryType = false; } - if(buttonState & Qt::LeftButton) { + if(buttonState & TQt::LeftButton) { if(!(buttonState & (TQt::ShiftButton | TQt::ControlButton))) { if((cnt != 1) || ((cnt == 1) && !item->isSelected())) { emit aboutToSelectItem(item, okToSelect); @@ -1722,7 +1722,7 @@ void Register::selectItem(RegisterItem* item, bool dontChangeSelections) break; } } - } else if(buttonState & Qt::RightButton) { + } else if(buttonState & TQt::RightButton) { // if the right button is pressed then only change the // selection if none of the Shift/Ctrl button is pressed and // one of the following conditions is true: @@ -2181,7 +2181,7 @@ void Register::keyPressEvent(TQKeyEvent* ev) // get the state out of the event ... m_buttonState = ev->state(); // ... and pretend that we have pressed the left mouse button ;) - m_buttonState = static_cast(m_buttonState | Qt::LeftButton); + m_buttonState = static_cast(m_buttonState | TQt::LeftButton); selectItem(m_focusItem); } break; @@ -2295,7 +2295,7 @@ void Register::addGroupMarkers(void) if(m_account.accountGroup() == MyMoneyAccount::Liability) balance = -balance; TQString txt = i18n("Online Statement Balance: %1").arg(balance.formatMoney(m_account.fraction())); - new KMyMoneyRegister::StatementGroupMarker(this, KMyMoneyRegister::Deposit, TQDate::fromString(m_account.value("lastImportedTransactionDate"), Qt::ISODate), txt); + new KMyMoneyRegister::StatementGroupMarker(this, KMyMoneyRegister::Deposit, TQDate::fromString(m_account.value("lastImportedTransactionDate"), TQt::ISODate), txt); } new KMyMoneyRegister::FancyDateGroupMarker(this, thisYear, i18n("This year")); -- cgit v1.2.1