summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/register.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 11:54:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 22:44:03 +0900
commit0008104748e6613c41d60b0545c07ed34e16ddec (patch)
tree12b1131ace7823c35c51d7f03002ed0e9f476dbd /kmymoney2/widgets/register.cpp
parenta84f7caff6a73b3d554279d41b9a00aa15ad1400 (diff)
downloadkmymoney-0008104748e6613c41d60b0545c07ed34e16ddec.tar.gz
kmymoney-0008104748e6613c41d60b0545c07ed34e16ddec.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 96c67c9b3924ab034d3d34aa03d3ea7cf0746587)
Diffstat (limited to 'kmymoney2/widgets/register.cpp')
-rw-r--r--kmymoney2/widgets/register.cpp20
1 files changed, 10 insertions, 10 deletions
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<TQMouseEvent*>(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<Transaction*>(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<TQt::ButtonState>(m_buttonState | Qt::LeftButton);
+ m_buttonState = static_cast<TQt::ButtonState>(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"));