From e33879600503bacc0b4ef090f7f79ab80bb6b0da Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 17 Jul 2011 18:20:57 -0500 Subject: Rename tqsize* to size* --- .../qt4/src/dialogs/tqprogressdialog.cpp | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'experimental/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp') diff --git a/experimental/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp b/experimental/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp index 74bf69fe9..a6f04b69f 100644 --- a/experimental/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp +++ b/experimental/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp @@ -358,8 +358,8 @@ void TQProgressDialog::setLabel( TQLabel *label ) label->reparent( this, 0, TQPoint(0,0), FALSE ); } } - int w = TQMAX( isVisible() ? width() : 0, tqsizeHint().width() ); - int h = TQMAX( isVisible() ? height() : 0, tqsizeHint().height() ); + int w = TQMAX( isVisible() ? width() : 0, sizeHint().width() ); + int h = TQMAX( isVisible() ? height() : 0, sizeHint().height() ); resize( w, h ); if (label) label->show(); @@ -384,8 +384,8 @@ void TQProgressDialog::setLabelText( const TQString &text ) { if ( label() ) { label()->setText( text ); - int w = TQMAX( isVisible() ? width() : 0, tqsizeHint().width() ); - int h = TQMAX( isVisible() ? height() : 0, tqsizeHint().height() ); + int w = TQMAX( isVisible() ? width() : 0, sizeHint().width() ); + int h = TQMAX( isVisible() ? height() : 0, sizeHint().height() ); resize( w, h ); } } @@ -417,8 +417,8 @@ void TQProgressDialog::setCancelButton( TQPushButton *cancelButton ) d->cancel, TQT_SIGNAL(clicked()) ); #endif } - int w = TQMAX( isVisible() ? width() : 0, tqsizeHint().width() ); - int h = TQMAX( isVisible() ? height() : 0, tqsizeHint().height() ); + int w = TQMAX( isVisible() ? width() : 0, sizeHint().width() ); + int h = TQMAX( isVisible() ? height() : 0, sizeHint().height() ); resize( w, h ); if (cancelButton) cancelButton->show(); @@ -439,8 +439,8 @@ void TQProgressDialog::setCancelButtonText( const TQString &cancelButtonText ) } else { setCancelButton(0); } - int w = TQMAX( isVisible() ? width() : 0, tqsizeHint().width() ); - int h = TQMAX( isVisible() ? height() : 0, tqsizeHint().height() ); + int w = TQMAX( isVisible() ? width() : 0, sizeHint().width() ); + int h = TQMAX( isVisible() ? height() : 0, sizeHint().height() ); resize( w, h ); } @@ -462,8 +462,8 @@ void TQProgressDialog::setBar( TQProgressBar *bar ) } delete d->bar; d->bar = bar; - int w = TQMAX( isVisible() ? width() : 0, tqsizeHint().width() ); - int h = TQMAX( isVisible() ? height() : 0, tqsizeHint().height() ); + int w = TQMAX( isVisible() ? width() : 0, sizeHint().width() ); + int h = TQMAX( isVisible() ? height() : 0, sizeHint().height() ); resize( w, h ); } @@ -610,8 +610,8 @@ void TQProgressDialog::setProgress( int progress ) } } if ( need_show ) { - int w = TQMAX( isVisible() ? width() : 0, tqsizeHint().width() ); - int h = TQMAX( isVisible() ? height() : 0, tqsizeHint().height() ); + int w = TQMAX( isVisible() ? width() : 0, sizeHint().width() ); + int h = TQMAX( isVisible() ? height() : 0, sizeHint().height() ); resize( w, h ); show(); d->shown_once = TRUE; @@ -647,13 +647,13 @@ void TQProgressDialog::setProgress( int progress, int totalSteps ) need to call this yourself. */ -TQSize TQProgressDialog::tqsizeHint() const +TQSize TQProgressDialog::sizeHint() const { - TQSize sh = label()->tqsizeHint(); - TQSize bh = bar()->tqsizeHint(); + TQSize sh = label()->sizeHint(); + TQSize bh = bar()->sizeHint(); int h = margin_tb*2 + bh.height() + sh.height() + spacing; if ( d->cancel ) - h += d->cancel->tqsizeHint().height() + spacing; + h += d->cancel->sizeHint().height() + spacing; return TQSize( TQMAX(200, sh.width() + 2*margin_lr), h ); } @@ -681,8 +681,8 @@ void TQProgressDialog::tqlayout() const bool centered = bool(tqstyle().tqstyleHint(TQStyle::SH_ProgressDialog_CenterCancelButton, this)); - TQSize cs = d->cancel ? d->cancel->tqsizeHint() : TQSize(0,0); - TQSize bh = bar()->tqsizeHint(); + TQSize cs = d->cancel ? d->cancel->sizeHint() : TQSize(0,0); + TQSize bh = bar()->sizeHint(); int cspc; int lh = 0; @@ -800,8 +800,8 @@ bool TQProgressDialog::autoClose() const void TQProgressDialog::showEvent( TQShowEvent *e ) { TQDialog::showEvent( e ); - int w = TQMAX( isVisible() ? width() : 0, tqsizeHint().width() ); - int h = TQMAX( isVisible() ? height() : 0, tqsizeHint().height() ); + int w = TQMAX( isVisible() ? width() : 0, sizeHint().width() ); + int h = TQMAX( isVisible() ? height() : 0, sizeHint().height() ); resize( w, h ); forceTimer->stop(); } -- cgit v1.2.1