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/kmymoneycombo.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/kmymoneycombo.cpp')
-rw-r--r-- | kmymoney2/widgets/kmymoneycombo.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/widgets/kmymoneycombo.cpp b/kmymoney2/widgets/kmymoneycombo.cpp index 37f4517..0d8ce4d 100644 --- a/kmymoney2/widgets/kmymoneycombo.cpp +++ b/kmymoney2/widgets/kmymoneycombo.cpp @@ -131,12 +131,12 @@ void KMyMoneyCombo::paintEvent(TQPaintEvent* ev) // is that length 1 is the blank case so no need to do painting if(str.length() > 1) { TQPainter p( this ); - const TQColorGroup & g = colorGroup(); + const TQColorGroup & g = tqcolorGroup(); p.setPen(g.text()); TQRect re = tqstyle().querySubControlMetrics( TQStyle::CC_ComboBox, this, TQStyle::SC_ComboBoxEditField ); - re = TQStyle::visualRect(re, this); + re = TQStyle::tqvisualRect(re, this); p.setClipRect( re ); p.save(); p.setFont(font()); @@ -182,7 +182,7 @@ bool KMyMoneyCombo::isInArrowArea(const TQPoint& pos) const { TQRect arrowRect = tqstyle().querySubControlMetrics( TQStyle::CC_ComboBox, this, TQStyle::SC_ComboBoxArrow); - arrowRect = TQStyle::visualRect(arrowRect, this); + arrowRect = TQStyle::tqvisualRect(arrowRect, this); // Correction for motif style, where arrow is smaller // and thus has a rect that doesn't fit the button. @@ -267,7 +267,7 @@ void KMyMoneyCombo::focusOutEvent(TQFocusEvent* e) m_id = TQString(); if(!id.isEmpty()) emit itemSelected(m_id); - repaint(); + tqrepaint(); } m_inFocusOutEvent = false; } @@ -305,9 +305,9 @@ void KMyMoneyCombo::setSelectedItem(const TQString& id) update(); } -TQSize KMyMoneyCombo::sizeHint() const +TQSize KMyMoneyCombo::tqsizeHint() const { - return KComboBox::sizeHint(); + return KComboBox::tqsizeHint(); // I wanted to use the code below to adjust the size of the combo box // according to the largest item in the selector list. Apparently that @@ -325,11 +325,11 @@ TQSize KMyMoneyCombo::sizeHint() const if ( w > maxW ) maxW = w; - TQSize sizeHint = (style().sizeFromContents(TQStyle::CT_ComboBox, this, + TQSize tqsizeHint = (style().sizeFromContents(TQStyle::CT_ComboBox, this, TQSize(maxW, maxH)). expandedTo(TQApplication::globalStrut())); - return sizeHint; + return tqsizeHint; #endif } |