diff options
author | Timothy Pearson <[email protected]> | 2011-12-16 09:57:14 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-16 09:57:14 -0600 |
commit | c1ef065782051db96cdfd32cf55be6408c2a9d22 (patch) | |
tree | 0bc3705b597f8c98b2b9992d22ab9620df50b877 /src/canvasitemparts.cpp | |
parent | bab171b2a7d7f36e2d5dd510df80fc8cb4a6b06f (diff) | |
download | ktechlab-c1ef065782051db96cdfd32cf55be6408c2a9d22.tar.gz ktechlab-c1ef065782051db96cdfd32cf55be6408c2a9d22.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit bab171b2a7d7f36e2d5dd510df80fc8cb4a6b06f.
Diffstat (limited to 'src/canvasitemparts.cpp')
-rw-r--r-- | src/canvasitemparts.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/canvasitemparts.cpp b/src/canvasitemparts.cpp index 67eb986..6d20edc 100644 --- a/src/canvasitemparts.cpp +++ b/src/canvasitemparts.cpp @@ -352,17 +352,17 @@ bool Button::state() const TQRect Button::recommendedRect() const { - TQSize sizeHint = m_button->sizeHint(); - if ( sizeHint.width() < m_originalRect.width() ) - sizeHint.setWidth( m_originalRect.width() ); + TQSize tqsizeHint = m_button->tqsizeHint(); + if ( tqsizeHint.width() < m_originalRect.width() ) + tqsizeHint.setWidth( m_originalRect.width() ); // Hmm...for now, lets just keep the recomended rect the same height as the original rect - sizeHint.setHeight( m_originalRect.height() ); + tqsizeHint.setHeight( m_originalRect.height() ); - int hdw = (sizeHint.width() - m_originalRect.width())/2; - int hdh = (sizeHint.height() - m_originalRect.height())/2; + int hdw = (tqsizeHint.width() - m_originalRect.width())/2; + int hdh = (tqsizeHint.height() - m_originalRect.height())/2; - return TQRect( m_originalRect.x()-hdw, m_originalRect.y()-hdh, sizeHint.width(), sizeHint.height() ); + return TQRect( m_originalRect.x()-hdw, m_originalRect.y()-hdh, tqsizeHint.width(), tqsizeHint.height() ); } |