summaryrefslogtreecommitdiffstats
path: root/src/canvasitemparts.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:13:30 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:13:30 -0600
commitabb8cd68f820cfe0c96965136890a6bdd1093db5 (patch)
tree0ccc113047cebed06b5bd61adeadab4330b7d4a0 /src/canvasitemparts.cpp
parentc1ef065782051db96cdfd32cf55be6408c2a9d22 (diff)
downloadktechlab-abb8cd68f820cfe0c96965136890a6bdd1093db5.tar.gz
ktechlab-abb8cd68f820cfe0c96965136890a6bdd1093db5.zip
Rename old tq methods that no longer need a unique name
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() );
}