diff options
author | Timothy Pearson <[email protected]> | 2011-12-18 18:31:39 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-18 18:31:39 -0600 |
commit | 45f529de247fc4b3662f6b474abe03fe904306ec (patch) | |
tree | d4b70147f7b0aeda4c1cb484553dc8ae048eb7ec /kpovmodeler/pmformulalabel.cpp | |
parent | ec1fddcd0d6663ad273af85357f04abbc5689468 (diff) | |
download | tdegraphics-45f529de247fc4b3662f6b474abe03fe904306ec.tar.gz tdegraphics-45f529de247fc4b3662f6b474abe03fe904306ec.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'kpovmodeler/pmformulalabel.cpp')
-rw-r--r-- | kpovmodeler/pmformulalabel.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kpovmodeler/pmformulalabel.cpp b/kpovmodeler/pmformulalabel.cpp index 51b5e13f..c6d9cd70 100644 --- a/kpovmodeler/pmformulalabel.cpp +++ b/kpovmodeler/pmformulalabel.cpp @@ -84,7 +84,7 @@ void PMFormulaLabel::drawContents( TQPainter* p ) // draw dot int center = ( cr.top( ) + cr.bottom( ) ) / 2; int rad = c_dotSize / 2; - p->setBrush( TQBrush( tqcolorGroup( ).text( ) ) ); + p->setBrush( TQBrush( colorGroup( ).text( ) ) ); p->drawEllipse( cr.left( ), center - rad, c_dotSize, c_dotSize ); cr.setLeft( cr.left( ) + c_dotSize + c_indent ); @@ -131,7 +131,7 @@ void PMFormulaLabel::calculateSizeHint( ) TQFontMetrics m1( font( ) ); if( sum == 0 ) - m_tqsizeHint.setWidth( m1.width( s_nullString ) ); + m_sizeHint.setWidth( m1.width( s_nullString ) ); else { TQFontMetrics m2( exponentFont( ) ); @@ -146,19 +146,19 @@ void PMFormulaLabel::calculateSizeHint( ) width += m2.width( s_digit[m_exponents[i]] ) + 1; } } - m_tqsizeHint.setWidth( width ); + m_sizeHint.setWidth( width ); } - m_tqsizeHint.setHeight( m1.height( ) + 7 ); + m_sizeHint.setHeight( m1.height( ) + 7 ); } -TQSize PMFormulaLabel::tqsizeHint( ) const +TQSize PMFormulaLabel::sizeHint( ) const { - return tqminimumSizeHint( ); + return minimumSizeHint( ); } -TQSize PMFormulaLabel::tqminimumSizeHint( ) const +TQSize PMFormulaLabel::minimumSizeHint( ) const { - return m_tqsizeHint; + return m_sizeHint; } void PMFormulaLabel::fontChange( const TQFont& ) |