summaryrefslogtreecommitdiffstats
path: root/src/canvasitemparts.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:13:30 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-08-01 04:34:45 +0200
commite72829f3fa8d309ba0c3f64034c14ce5eecd8590 (patch)
treead28ceea8f25258a0f1e4eaf5c08e59f42c23298 /src/canvasitemparts.cpp
parent0e831bb9c456be0d2880357a4bf294369c435984 (diff)
downloadktechlab-e72829f3fa8d309ba0c3f64034c14ce5eecd8590.tar.gz
ktechlab-e72829f3fa8d309ba0c3f64034c14ce5eecd8590.zip
Rename old tq methods that no longer need a unique name
(cherry picked from commit abb8cd68f820cfe0c96965136890a6bdd1093db5)
Diffstat (limited to 'src/canvasitemparts.cpp')
-rw-r--r--src/canvasitemparts.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/canvasitemparts.cpp b/src/canvasitemparts.cpp
index 6d20edc..67eb986 100644
--- a/src/canvasitemparts.cpp
+++ b/src/canvasitemparts.cpp
@@ -352,17 +352,17 @@ bool Button::state() const
TQRect Button::recommendedRect() const
{
- TQSize tqsizeHint = m_button->tqsizeHint();
- if ( tqsizeHint.width() < m_originalRect.width() )
- tqsizeHint.setWidth( m_originalRect.width() );
+ TQSize sizeHint = m_button->sizeHint();
+ if ( sizeHint.width() < m_originalRect.width() )
+ sizeHint.setWidth( m_originalRect.width() );
// Hmm...for now, lets just keep the recomended rect the same height as the original rect
- tqsizeHint.setHeight( m_originalRect.height() );
+ sizeHint.setHeight( m_originalRect.height() );
- int hdw = (tqsizeHint.width() - m_originalRect.width())/2;
- int hdh = (tqsizeHint.height() - m_originalRect.height())/2;
+ int hdw = (sizeHint.width() - m_originalRect.width())/2;
+ int hdh = (sizeHint.height() - m_originalRect.height())/2;
- return TQRect( m_originalRect.x()-hdw, m_originalRect.y()-hdh, tqsizeHint.width(), tqsizeHint.height() );
+ return TQRect( m_originalRect.x()-hdw, m_originalRect.y()-hdh, sizeHint.width(), sizeHint.height() );
}