diff options
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqlabel.cpp')
-rw-r--r-- | tqtinterface/qt4/src/widgets/tqlabel.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqlabel.cpp b/tqtinterface/qt4/src/widgets/tqlabel.cpp index 0b529f0..b29d599 100644 --- a/tqtinterface/qt4/src/widgets/tqlabel.cpp +++ b/tqtinterface/qt4/src/widgets/tqlabel.cpp @@ -272,7 +272,7 @@ void TQLabel::setText( const TQString &text ) { if ( ltext == text ) return; - TQSize osh = sizeHint(); + TQSize osh = tqsizeHint(); #ifndef TQT_NO_RICHTEXT bool hadRichtext = doc != 0; #endif @@ -338,7 +338,7 @@ void TQLabel::clear() */ void TQLabel::setPixmap( const TQPixmap &pixmap ) { - TQSize osh = sizeHint(); + TQSize osh = tqsizeHint(); if ( !lpixmap || lpixmap->serialNumber() != pixmap.serialNumber() ) { clearContents(); @@ -363,7 +363,7 @@ void TQLabel::setPixmap( const TQPixmap &pixmap ) void TQLabel::setPicture( const TQPicture &picture ) { - TQSize osh = sizeHint(); + TQSize osh = tqsizeHint(); clearContents(); lpicture = new TQPicture( picture ); @@ -439,7 +439,7 @@ void TQLabel::tqsetAlignment( int tqalignment ) { if ( tqalignment == align ) return; - TQSize osh = sizeHint(); + TQSize osh = tqsizeHint(); #ifndef TQT_NO_ACCEL if ( lbuddy ) align = tqalignment | TQt::ShowPrefix; @@ -508,7 +508,7 @@ void TQLabel::setIndent( int indent ) Auto-resizing is disabled by default. - \sa autoResize(), adjustSize(), sizeHint() + \sa autoResize(), adjustSize(), tqsizeHint() */ void TQLabel::setAutoResize( bool enable ) @@ -524,7 +524,7 @@ void TQLabel::setAutoResize( bool enable ) /*! Returns the size that will be used if the width of the label is \a - w. If \a w is -1, the sizeHint() is returned. + w. If \a w is -1, the tqsizeHint() is returned. */ TQSize TQLabel::sizeForWidth( int w ) const @@ -620,7 +620,7 @@ int TQLabel::heightForWidth( int w ) const /*!\reimp */ -TQSize TQLabel::sizeHint() const +TQSize TQLabel::tqsizeHint() const { if ( d->valid_hints != frameWidth() ) (void) TQLabel::tqminimumSizeHint(); @@ -654,9 +654,9 @@ TQSize TQLabel::tqminimumSizeHint() const if ( d->sh.height() < sz.height() ) sz.rheight() = d->sh.height(); } - if ( sizePolicy().horData() == TQSizePolicy::Ignored ) + if ( tqsizePolicy().horData() == TQSizePolicy::Ignored ) sz.rwidth() = -1; - if ( sizePolicy().verData() == TQSizePolicy::Ignored ) + if ( tqsizePolicy().verData() == TQSizePolicy::Ignored ) sz.rheight() = -1; d->msh = sz; return sz; @@ -854,12 +854,12 @@ void TQLabel::drawContents( TQPainter *p ) void TQLabel::updateLabel( TQSize oldSizeHint ) { d->valid_hints = -1; - TQSizePolicy policy = sizePolicy(); + TQSizePolicy policy = tqsizePolicy(); bool wordBreak = align & TQt::WordBreak; policy.setHeightForWidth( wordBreak ); - if ( policy != sizePolicy() ) + if ( policy != tqsizePolicy() ) tqsetSizePolicy( policy ); - if ( sizeHint() != oldSizeHint ) + if ( tqsizeHint() != oldSizeHint ) updateGeometry(); if ( autoresize ) { adjustSize(); @@ -1026,7 +1026,7 @@ void TQLabel::movieResized( const TQSize& size ) void TQLabel::setMovie( const TQMovie& movie ) { - TQSize osh = sizeHint(); + TQSize osh = tqsizeHint(); clearContents(); lmovie = new TQMovie( movie ); |