summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets')
-rw-r--r--kmymoney2/widgets/kmymoneyaccountcombo.cpp4
-rw-r--r--kmymoney2/widgets/kmymoneycombo.cpp2
-rw-r--r--kmymoney2/widgets/register.cpp20
-rw-r--r--kmymoney2/widgets/register.h2
-rw-r--r--kmymoney2/widgets/stdtransactionmatched.cpp6
5 files changed, 17 insertions, 17 deletions
diff --git a/kmymoney2/widgets/kmymoneyaccountcombo.cpp b/kmymoney2/widgets/kmymoneyaccountcombo.cpp
index 907ce75..f97fdcb 100644
--- a/kmymoney2/widgets/kmymoneyaccountcombo.cpp
+++ b/kmymoney2/widgets/kmymoneyaccountcombo.cpp
@@ -165,7 +165,7 @@ void KMyMoneyAccountCombo::keyPressEvent(TQKeyEvent* k)
void KMyMoneyAccountCombo::mousePressEvent(TQMouseEvent *e)
{
- if ( e->button() != Qt::LeftButton ) {
+ if ( e->button() != TQt::LeftButton ) {
e->ignore();
return;
}
@@ -178,7 +178,7 @@ void KMyMoneyAccountCombo::mousePressEvent(TQMouseEvent *e)
void KMyMoneyAccountCombo::mouseReleaseEvent(TQMouseEvent *e)
{
- if ( e->button() != Qt::LeftButton ) {
+ if ( e->button() != TQt::LeftButton ) {
e->ignore();
return;
}
diff --git a/kmymoney2/widgets/kmymoneycombo.cpp b/kmymoney2/widgets/kmymoneycombo.cpp
index 9695a60..26c5e57 100644
--- a/kmymoney2/widgets/kmymoneycombo.cpp
+++ b/kmymoney2/widgets/kmymoneycombo.cpp
@@ -165,7 +165,7 @@ void KMyMoneyCombo::setPaletteBackgroundColor(const TQColor& color)
void KMyMoneyCombo::mousePressEvent(TQMouseEvent *e)
{
// mostly copied from TQCombo::mousePressEvent() and adjusted for our needs
- if(e->button() != Qt::LeftButton)
+ if(e->button() != TQt::LeftButton)
return;
if(((!editable() || isInArrowArea(mapToGlobal(e->pos()))) && selector()->itemList().count()) && !m_completion->isVisible()) {
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"));
diff --git a/kmymoney2/widgets/register.h b/kmymoney2/widgets/register.h
index 79d1ce1..e76c345 100644
--- a/kmymoney2/widgets/register.h
+++ b/kmymoney2/widgets/register.h
@@ -332,7 +332,7 @@ public:
/**
* Select @a item and unselect all others if @a dontChangeSelections
- * is @a false. If m_buttonState differs from Qt::NoButton (method is
+ * is @a false. If m_buttonState differs from TQt::NoButton (method is
* called as a result of a mouse button press), then the setting of
* @a dontChangeSelections has no effect.
*/
diff --git a/kmymoney2/widgets/stdtransactionmatched.cpp b/kmymoney2/widgets/stdtransactionmatched.cpp
index ef4097f..8dab8f7 100644
--- a/kmymoney2/widgets/stdtransactionmatched.cpp
+++ b/kmymoney2/widgets/stdtransactionmatched.cpp
@@ -144,7 +144,7 @@ void StdTransactionMatched::registerCellText(TQString& txt, int& align, int row,
case DetailColumn:
align |= TQt::AlignLeft;
- txt = TQString("%1 %2").arg(matchedTransaction.postDate().toString(Qt::ISODate)).arg(matchedTransaction.memo());
+ txt = TQString("%1 %2").arg(matchedTransaction.postDate().toString(TQt::ISODate)).arg(matchedTransaction.memo());
break;
case PaymentColumn:
@@ -174,7 +174,7 @@ void StdTransactionMatched::registerCellText(TQString& txt, int& align, int row,
align |= TQt::AlignLeft;
postDate = m_transaction.postDate();
if(!m_split.value("kmm-orig-postdate").isEmpty()) {
- postDate = TQDate::fromString(m_split.value("kmm-orig-postdate"), Qt::ISODate);
+ postDate = TQDate::fromString(m_split.value("kmm-orig-postdate"), TQt::ISODate);
}
memo = m_split.memo();
if(!matchedSplit.memo().isEmpty() && memo != matchedSplit.memo()) {
@@ -187,7 +187,7 @@ void StdTransactionMatched::registerCellText(TQString& txt, int& align, int row,
memo.replace('\n', " ");
}
}
- txt = TQString("%1 %2").arg(postDate.toString(Qt::ISODate)).arg(memo);
+ txt = TQString("%1 %2").arg(postDate.toString(TQt::ISODate)).arg(memo);
break;
case PaymentColumn: