diff options
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() ); } |