diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:17 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:17 -0600 |
commit | 1f9d00360b9018301630ce062d7dda0c6583edfb (patch) | |
tree | 1013b917f9a8ad41ed928d62250e9bfe1ed91414 /kmymoney2/widgets/kmymoneyedit.cpp | |
parent | 252fce5a2a5384702fbcc1c9987284d7bd2e6943 (diff) | |
download | kmymoney-1f9d00360b9018301630ce062d7dda0c6583edfb.tar.gz kmymoney-1f9d00360b9018301630ce062d7dda0c6583edfb.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 252fce5a2a5384702fbcc1c9987284d7bd2e6943.
Diffstat (limited to 'kmymoney2/widgets/kmymoneyedit.cpp')
-rw-r--r-- | kmymoney2/widgets/kmymoneyedit.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/widgets/kmymoneyedit.cpp b/kmymoney2/widgets/kmymoneyedit.cpp index c3ad220..2cbb6b3 100644 --- a/kmymoney2/widgets/kmymoneyedit.cpp +++ b/kmymoney2/widgets/kmymoneyedit.cpp @@ -118,7 +118,7 @@ TQValidator::State kMyMoneyMoneyValidator::validate( TQString & input, int & _p // check for minus sign trailing the number TQRegExp trailingMinus("^([^-]*)\\w*-$"); if(s.find(trailingMinus) != -1) { - s = TQString("-%1").arg(trailingMinus.cap(1)); + s = TQString("-%1").tqarg(trailingMinus.cap(1)); } // check for the maximum allowed number of decimal places @@ -211,7 +211,7 @@ void kMyMoneyEdit::init(void) // Yes, just a simple double validator ! kMyMoneyMoneyValidator *validator = new kMyMoneyMoneyValidator(TQT_TQOBJECT(this)); m_edit->setValidator(validator); - m_edit->setAlignment(AlignRight | AlignVCenter); + m_edit->tqsetAlignment(AlignRight | AlignVCenter); m_calculatorFrame = new TQVBox(this, 0, WType_Popup); @@ -223,15 +223,15 @@ void kMyMoneyEdit::init(void) m_calculatorFrame->hide(); m_calcButton = new KPushButton(TQIconSet(TQPixmap(KGlobal::iconLoader()->iconPath("kcalc", -KIcon::SizeSmall))), TQString(""), this); - m_calcButton->setFixedWidth( m_calcButton->sizeHint().width() ); - m_calcButton->setFixedHeight(m_edit->sizeHint().height()); + m_calcButton->setFixedWidth( m_calcButton->tqsizeHint().width() ); + m_calcButton->setFixedHeight(m_edit->tqsizeHint().height()); m_calcButton->setFocusProxy(m_edit); TQPixmap pixmap; pixmap.loadFromData(resetButtonImage, sizeof(resetButtonImage), "PNG", 0); m_resetButton = new KPushButton(TQIconSet(pixmap), TQString(""), this); - m_resetButton->setFixedWidth( m_resetButton->sizeHint().width() ); - m_resetButton->setFixedHeight(m_edit->sizeHint().height()); + m_resetButton->setFixedWidth( m_resetButton->tqsizeHint().width() ); + m_resetButton->setFixedHeight(m_edit->tqsizeHint().height()); m_resetButton->setEnabled(false); m_resetButton->setFocusProxy(m_edit); @@ -477,7 +477,7 @@ void kMyMoneyEdit::calculatorOpen(TQKeyEvent* k) if(p.x() + w > TQApplication::desktop()->width()) p.setX(p.x() + width() - w); - TQRect r = m_calculator->geometry(); + TQRect r = m_calculator->tqgeometry(); r.moveTopLeft(p); m_calculatorFrame->setGeometry(r); m_calculatorFrame->show(); @@ -496,7 +496,7 @@ void kMyMoneyEdit::slotCalculatorResult(void) } } -TQWidget* kMyMoneyEdit::focusWidget(void) const +TQWidget* kMyMoneyEdit::tqfocusWidget(void) const { TQWidget* w = m_edit; while(w->focusProxy()) |