diff options
Diffstat (limited to 'tqtinterface/qt4')
227 files changed, 849 insertions, 849 deletions
diff --git a/tqtinterface/qt4/include/tqtglobaldefines.h~ b/tqtinterface/qt4/include/tqtglobaldefines.h~ index 6c023a8..04b86e3 100644 --- a/tqtinterface/qt4/include/tqtglobaldefines.h~ +++ b/tqtinterface/qt4/include/tqtglobaldefines.h~ @@ -193,11 +193,11 @@ // #define tqcrossCursor Qt::CrossCursor // #define tqwaitCursor Qt::WaitCursor // #define tqibeamCursor Qt::IBeamCursor -// #define tqsizeVerCursor Qt::SizeVerCursor -// #define tqsizeHorCursor Qt::SizeHorCursor -// #define tqsizeBDiagCursor Qt::SizeBDiagCursor -// #define tqsizeFDiagCursor Qt::SizeFDiagCursor -// #define tqsizeAllCursor Qt::SizeAllCursor +// #define sizeVerCursor Qt::SizeVerCursor +// #define sizeHorCursor Qt::SizeHorCursor +// #define sizeBDiagCursor Qt::SizeBDiagCursor +// #define sizeFDiagCursor Qt::SizeFDiagCursor +// #define sizeAllCursor Qt::SizeAllCursor // #define tqblankCursor Qt::BlankCursor // #define tqsplitVCursor Qt::SplitVCursor // #define tqsplitHCursor Qt::SplitHCursor @@ -211,11 +211,11 @@ #define tqcrossCursor TQt::crossCursor #define tqwaitCursor TQt::waitCursor #define tqibeamCursor TQt::ibeamCursor -#define tqsizeVerCursor TQt::sizeVerCursor -#define tqsizeHorCursor TQt::sizeHorCursor -#define tqsizeBDiagCursor TQt::sizeBDiagCursor -#define tqsizeFDiagCursor TQt::sizeFDiagCursor -#define tqsizeAllCursor TQt::sizeAllCursor +#define sizeVerCursor TQt::sizeVerCursor +#define sizeHorCursor TQt::sizeHorCursor +#define sizeBDiagCursor TQt::sizeBDiagCursor +#define sizeFDiagCursor TQt::sizeFDiagCursor +#define sizeAllCursor TQt::sizeAllCursor #define tqblankCursor TQt::blankCursor #define tqsplitVCursor TQt::splitVCursor #define tqsplitHCursor TQt::splitHCursor diff --git a/tqtinterface/qt4/src/attic/qtmultilineedit.cpp b/tqtinterface/qt4/src/attic/qtmultilineedit.cpp index 203ed56..a80f452 100644 --- a/tqtinterface/qt4/src/attic/qtmultilineedit.cpp +++ b/tqtinterface/qt4/src/attic/qtmultilineedit.cpp @@ -3079,7 +3079,7 @@ TQSizePolicy TQtMultiLineEdit::sizePolicy() const /*\reimp */ -TQSize TQtMultiLineEdit::tqsizeHint() const +TQSize TQtMultiLineEdit::sizeHint() const { constPolish(); int expected_lines; @@ -3113,9 +3113,9 @@ TQSize TQtMultiLineEdit::tqminimumSizeHint() const h += frameWidth(); w += frameWidth(); if ( testTableFlags(Tbl_hScrollBar|Tbl_autoHScrollBar) ) - w += verticalScrollBar()->tqsizeHint().width(); + w += verticalScrollBar()->sizeHint().width(); if ( testTableFlags(Tbl_vScrollBar|Tbl_autoVScrollBar) ) - h += horizontalScrollBar()->tqsizeHint().height(); + h += horizontalScrollBar()->sizeHint().height(); return TQSize(w,h); } diff --git a/tqtinterface/qt4/src/attic/qtmultilineedit.h b/tqtinterface/qt4/src/attic/qtmultilineedit.h index 2e539ee..a1abae7 100644 --- a/tqtinterface/qt4/src/attic/qtmultilineedit.h +++ b/tqtinterface/qt4/src/attic/qtmultilineedit.h @@ -58,7 +58,7 @@ public: TQString textLine( int line ) const; int numLines() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; TQSizePolicy sizePolicy() const; diff --git a/tqtinterface/qt4/src/attic/qttableview.cpp b/tqtinterface/qt4/src/attic/qttableview.cpp index 0872fa6..33bff81 100644 --- a/tqtinterface/qt4/src/attic/qttableview.cpp +++ b/tqtinterface/qt4/src/attic/qttableview.cpp @@ -32,8 +32,8 @@ enum ScrollBarDirtyFlags { }; -#define HSBEXT horizontalScrollBar()->tqsizeHint().height() -#define VSBEXT verticalScrollBar()->tqsizeHint().width() +#define HSBEXT horizontalScrollBar()->sizeHint().height() +#define VSBEXT verticalScrollBar()->sizeHint().width() class TQCornerSquare : public TQWidget // internal class @@ -1441,7 +1441,7 @@ TQScrollBar *TQtTableView::verticalScrollBar() const #ifndef TQT_NO_CURSOR sb->setCursor( arrowCursor ); #endif - sb->resize( sb->tqsizeHint() ); // height is irrelevant + sb->resize( sb->sizeHint() ); // height is irrelevant TQ_CHECK_PTR(sb); sb->setTracking( FALSE ); sb->setFocusPolicy( NoFocus ); @@ -1472,7 +1472,7 @@ TQScrollBar *TQtTableView::horizontalScrollBar() const #ifndef TQT_NO_CURSOR sb->setCursor( arrowCursor ); #endif - sb->resize( sb->tqsizeHint() ); // width is irrelevant + sb->resize( sb->sizeHint() ); // width is irrelevant sb->setFocusPolicy( NoFocus ); TQ_CHECK_PTR(sb); sb->setTracking( FALSE ); diff --git a/tqtinterface/qt4/src/canvas/tqcanvas.cpp b/tqtinterface/qt4/src/canvas/tqcanvas.cpp index 22ee9f4..ec86352 100644 --- a/tqtinterface/qt4/src/canvas/tqcanvas.cpp +++ b/tqtinterface/qt4/src/canvas/tqcanvas.cpp @@ -3714,10 +3714,10 @@ void TQCanvasView::drawContents( TQPainter * ) /*! Suggests a size sufficient to view the entire canvas. */ -TQSize TQCanvasView::tqsizeHint() const +TQSize TQCanvasView::sizeHint() const { if ( !canvas() ) - return TQScrollView::tqsizeHint(); + return TQScrollView::sizeHint(); // should maybe take transformations into account return ( canvas()->size() + 2 * TQSize(frameWidth(), frameWidth()) ) .boundedTo( 3 * TQApplication::desktop()->size() / 4 ); diff --git a/tqtinterface/qt4/src/canvas/tqcanvas.h b/tqtinterface/qt4/src/canvas/tqcanvas.h index 2aaba6e..3e6bfd7 100644 --- a/tqtinterface/qt4/src/canvas/tqcanvas.h +++ b/tqtinterface/qt4/src/canvas/tqcanvas.h @@ -382,7 +382,7 @@ public: protected: void drawContents( TQPainter*, int cx, int cy, int cw, int ch ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; private: void drawContents( TQPainter* ); diff --git a/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp b/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp index cd13476..2b7e1a0 100644 --- a/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp +++ b/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp @@ -87,7 +87,7 @@ public: virtual void setCurrent( int row, int col ); virtual void setSelected( int row, int col ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; virtual void setCellBrush( int row, int col, const TQBrush & ); TQBrush cellBrush( int row, int col ); @@ -176,7 +176,7 @@ TQWellArray::TQWellArray( TQWidget *tqparent, const char * name, bool popup ) } -TQSize TQWellArray::tqsizeHint() const +TQSize TQWellArray::sizeHint() const { constPolish(); TQSize s = gridSize().boundedTo( TQSize(640, 480 ) ); @@ -642,7 +642,7 @@ Q_SIGNALS: void newCol( int h, int s ); protected: - TQSize tqsizeHint() const; + TQSize sizeHint() const; void drawContents(TQPainter* p); void mouseMoveEvent( TQMouseEvent * ); void mousePressEvent( TQMouseEvent * ); @@ -825,7 +825,7 @@ TQColorPicker::~TQColorPicker() delete pix; } -TQSize TQColorPicker::tqsizeHint() const +TQSize TQColorPicker::sizeHint() const { return TQSize( pWidth + 2*frameWidth(), pHeight + 2*frameWidth() ); } @@ -910,9 +910,9 @@ class TQColNumLineEdit : public TQLineEdit public: TQColNumLineEdit( TQWidget *tqparent, const char* name=0 ) : TQLineEdit( tqparent, name ) { setMaxLength( 3 );} - TQSize tqsizeHint() const { + TQSize sizeHint() const { return TQSize( fontMetrics().width( "999" ) + 2 * ( margin() + frameWidth() ), - TQLineEdit::tqsizeHint().height() ); } + TQLineEdit::sizeHint().height() ); } void setNum( int i ) { TQString s; s.setNum(i); diff --git a/tqtinterface/qt4/src/dialogs/tqdialog.cpp b/tqtinterface/qt4/src/dialogs/tqdialog.cpp index 43db3ca..ef31573 100644 --- a/tqtinterface/qt4/src/dialogs/tqdialog.cpp +++ b/tqtinterface/qt4/src/dialogs/tqdialog.cpp @@ -48,7 +48,7 @@ #include "tqobjectlist.h" #include "tqwidgetlist.h" #include "tqlayout.h" -#include "tqsizegrip.h" +#include "sizegrip.h" #include "tqwhatsthis.h" #include "tqpopupmenu.h" #include "tqcursor.h" @@ -148,7 +148,7 @@ dialog will initially appear as a partial dialog, but with a "More" toggle button. If the user presses the "More" button down, the full dialog will appear. The extension widget will be resized - to its tqsizeHint(). If orientation is \c Horizontal the extension + to its sizeHint(). If orientation is \c Horizontal the extension widget's height() will be expanded to the height() of the dialog. If the orientation is \c Vertical the extension widget's width() will be expanded to the width() of the dialog. Extensibility is @@ -1050,7 +1050,7 @@ void TQDialog::showExtension( bool showIt ) if ( tqlayout() ) tqlayout()->setEnabled( FALSE ); #endif - TQSize s( d->extension->tqsizeHint() + TQSize s( d->extension->sizeHint() .expandedTo( d->extension->tqminimumSize() ) .boundedTo( d->extension->tqmaximumSize() ) ); if ( d->orientation == Qt::Horizontal ) { @@ -1078,18 +1078,18 @@ void TQDialog::showExtension( bool showIt ) /*! \reimp */ -TQSize TQDialog::tqsizeHint() const +TQSize TQDialog::sizeHint() const { if ( d->extension ) { if ( d->orientation == Qt::Horizontal ) - return TQSize( TQWidget::tqsizeHint().width(), - TQMAX( TQWidget::tqsizeHint().height(),d->extension->tqsizeHint().height() ) ); + return TQSize( TQWidget::sizeHint().width(), + TQMAX( TQWidget::sizeHint().height(),d->extension->sizeHint().height() ) ); else - return TQSize( TQMAX( TQWidget::tqsizeHint().width(), d->extension->tqsizeHint().width() ), - TQWidget::tqsizeHint().height() ); + return TQSize( TQMAX( TQWidget::sizeHint().width(), d->extension->sizeHint().width() ), + TQWidget::sizeHint().height() ); } - return TQWidget::tqsizeHint(); + return TQWidget::sizeHint(); } @@ -1150,7 +1150,7 @@ void TQDialog::setSizeGripEnabled(bool enabled) if ( enabled ) { d->resizer = new TQSizeGrip( this, "TQDialog::resizer" ); // adjustSize() processes all events, which is suboptimal - d->resizer->resize( d->resizer->tqsizeHint() ); + d->resizer->resize( d->resizer->sizeHint() ); if ( TQApplication::reverseLayout() ) d->resizer->move( rect().bottomLeft() -d->resizer->rect().bottomLeft() ); else diff --git a/tqtinterface/qt4/src/dialogs/tqdialog.h b/tqtinterface/qt4/src/dialogs/tqdialog.h index 972fc1d..a15389c 100644 --- a/tqtinterface/qt4/src/dialogs/tqdialog.h +++ b/tqtinterface/qt4/src/dialogs/tqdialog.h @@ -84,7 +84,7 @@ public: void setExtension( TQWidget* extension ); TQWidget* extension() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; void setSizeGripEnabled( bool ); diff --git a/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp b/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp index 8a86b71..99309d8 100644 --- a/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp +++ b/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp @@ -63,7 +63,7 @@ public: : TQTextView( tqparent, name ) { } virtual TQSize tqminimumSizeHint() const; - virtual TQSize tqsizeHint() const; + virtual TQSize sizeHint() const; }; TQSize TQErrorMessageTextView::tqminimumSizeHint() const @@ -71,7 +71,7 @@ TQSize TQErrorMessageTextView::tqminimumSizeHint() const return TQSize( 50, 50 ); } -TQSize TQErrorMessageTextView::tqsizeHint() const +TQSize TQErrorMessageTextView::sizeHint() const { return TQSize( 250, 75 ); } diff --git a/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp b/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp index f92e18e..221bec5 100644 --- a/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp +++ b/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp @@ -892,7 +892,7 @@ TQFDProgressDialog::TQFDProgressDialog( TQWidget *tqparent, const TQString &fn, TQPushButton *b = new TQPushButton( TQFileDialog::tr( "Cancel" ), this, "qt_cancel_btn" ); - b->setFixedSize( b->tqsizeHint() ); + b->setFixedSize( b->sizeHint() ); tqlayout->addWidget( b ); connect( b, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( cancelled() ) ); @@ -1180,7 +1180,7 @@ TQFileListBox::TQFileListBox( TQWidget *tqparent, TQFileDialog *dlg ) TQVBox *box = new TQVBox( viewport(), "qt_vbox" ); box->setFrameStyle( TQFrame::Box | TQFrame::Plain ); lined = new TQRenameEdit( box ); - lined->setFixedHeight( lined->tqsizeHint().height() ); + lined->setFixedHeight( lined->sizeHint().height() ); box->hide(); box->setBackgroundMode( TQt::PaletteBase ); renameTimer = new TQTimer( this ); @@ -1581,7 +1581,7 @@ TQFileDialogTQFileListView::TQFileDialogTQFileListView( TQWidget *tqparent, TQFi TQVBox *box = new TQVBox( viewport(), "qt_vbox" ); box->setFrameStyle( TQFrame::Box | TQFrame::Plain ); lined = new TQRenameEdit( box ); - lined->setFixedHeight( lined->tqsizeHint().height() ); + lined->setFixedHeight( lined->sizeHint().height() ); box->hide(); box->setBackgroundMode( TQt::PaletteBase ); renameTimer = new TQTimer( this ); @@ -2795,7 +2795,7 @@ void TQFileDialog::init() if ( screen.width() < 1024 || screen.height() < 768 ) { resize( TQMIN(screen.width(), 420), TQMIN(screen.height(), 236) ); } else { - TQSize s = files->tqsizeHint(); + TQSize s = files->sizeHint(); s = TQSize( s.width() + 300, s.height() + 82 ); if ( s.width() * 3 > screen.width() * 2 ) @@ -3894,20 +3894,20 @@ void TQFileDialog::updateGeometries() r.setHeight( TQMAX(r.height(),t.height()) ) // labels first - r = d->pathL->tqsizeHint(); - t = d->fileL->tqsizeHint(); + r = d->pathL->sizeHint(); + t = d->fileL->sizeHint(); RM; - t = d->typeL->tqsizeHint(); + t = d->typeL->sizeHint(); RM; - d->pathL->setFixedSize( d->pathL->tqsizeHint() ); + d->pathL->setFixedSize( d->pathL->sizeHint() ); d->fileL->setFixedSize( r ); d->typeL->setFixedSize( r ); // single-line input areas - r = d->paths->tqsizeHint(); - t = nameEdit->tqsizeHint(); + r = d->paths->sizeHint(); + t = nameEdit->sizeHint(); RM; - t = d->types->tqsizeHint(); + t = d->types->sizeHint(); RM; r.setWidth( t.width() * 2 / 3 ); t.setWidth( TQWIDGETSIZE_MAX ); @@ -3935,7 +3935,7 @@ r.setHeight( TQMAX(r.height(),t.height()) ) TQButton *b = 0; if ( !d->toolButtons.isEmpty() ) { for ( b = d->toolButtons.first(); b; b = d->toolButtons.next() ) - b->setFixedSize( b->tqsizeHint().width(), r.height() ); + b->setFixedSize( b->sizeHint().width(), r.height() ); } if ( d->infoPreview ) { @@ -3956,9 +3956,9 @@ r.setHeight( TQMAX(r.height(),t.height()) ) // open/save, cancel r = TQSize( 75, 20 ); - t = okB->tqsizeHint(); + t = okB->sizeHint(); RM; - t = cancelB->tqsizeHint(); + t = cancelB->sizeHint(); RM; okB->setFixedSize( r ); diff --git a/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp b/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp index fbccfa8..7669091 100644 --- a/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp +++ b/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp @@ -227,9 +227,9 @@ TQFontDialog::TQFontDialog( TQWidget *tqparent, const char *name, connect( d->underline, TQT_SIGNAL(clicked()), TQT_SLOT(updateSample()) ); - (void)d->familyList->tqsizeHint(); - (void)d->styleList->tqsizeHint(); - (void)d->sizeList->tqsizeHint(); + (void)d->familyList->sizeHint(); + (void)d->styleList->sizeHint(); + (void)d->sizeList->sizeHint(); for (int i = 0; i < TQFont::NScripts; i++) { TQString scriptname = TQFontDatabase::scriptName((TQFont::Script) i); diff --git a/tqtinterface/qt4/src/dialogs/tqinputdialog.cpp b/tqtinterface/qt4/src/dialogs/tqinputdialog.cpp index 951826b..19dad1d 100644 --- a/tqtinterface/qt4/src/dialogs/tqinputdialog.cpp +++ b/tqtinterface/qt4/src/dialogs/tqinputdialog.cpp @@ -152,7 +152,7 @@ TQInputDialog::TQInputDialog( const TQString &label, TQWidget* tqparent, d->ok->setDefault( TRUE ); TQPushButton *cancel = new TQPushButton( tr( "Cancel" ), this, "qt_cancel_btn" ); - TQSize bs = d->ok->tqsizeHint().expandedTo( cancel->tqsizeHint() ); + TQSize bs = d->ok->sizeHint().expandedTo( cancel->sizeHint() ); d->ok->setFixedSize( bs ); cancel->setFixedSize( bs ); @@ -168,7 +168,7 @@ TQInputDialog::TQInputDialog( const TQString &label, TQWidget* tqparent, connect( d->ok, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) ); connect( cancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) ); - TQSize sh = tqsizeHint().expandedTo( TQSize(400, 10) ); + TQSize sh = sizeHint().expandedTo( TQSize(400, 10) ); setType( type ); resize( sh.width(), vbox->heightForWidth(sh.width()) ); } @@ -237,7 +237,7 @@ void TQInputDialog::setType( Type t ) } if ( input ) { d->stack->raiseWidget( input ); - d->stack->setFixedHeight( input->tqsizeHint().height() ); + d->stack->setFixedHeight( input->sizeHint().height() ); input->setFocus(); #ifndef TQT_NO_ACCEL d->label->setBuddy( input ); diff --git a/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp b/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp index 79f6bfc..9d89be5 100644 --- a/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp +++ b/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp @@ -1682,7 +1682,7 @@ void TQMessageBox::resizeButtons() int i; TQSize maxSize; for ( i=0; i<mbd->numButtons; i++ ) { - TQSize s = mbd->pb[i]->tqsizeHint(); + TQSize s = mbd->pb[i]->sizeHint(); maxSize.setWidth( TQMAX(maxSize.width(), s.width()) ); maxSize.setHeight( TQMAX(maxSize.height(),s.height()) ); } diff --git a/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp b/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp index eb4a794..fdfecfd 100644 --- a/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp +++ b/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp @@ -922,8 +922,8 @@ TQPrintDialog::TQPrintDialog( TQPrinter *prn, TQWidget *tqparent, const char *na cancel->setText( tr("Cancel") ); horiz->addWidget( cancel ); - TQSize s1 = d->ok->tqsizeHint(); - TQSize s2 = cancel->tqsizeHint(); + TQSize s1 = d->ok->sizeHint(); + TQSize s2 = cancel->sizeHint(); s1 = TQSize( TQMAX(s1.width(), s2.width()), TQMAX(s1.height(), s2.height()) ); @@ -1139,7 +1139,7 @@ TQGroupBox * TQPrintDialog::setupDestination() int h = fontMetrics().height(); if ( d->printers->firstChild() ) h = d->printers->firstChild()->height(); - d->printers->setMinimumSize( d->printers->tqsizeHint().width(), + d->printers->setMinimumSize( d->printers->sizeHint().width(), d->printers->header()->height() + 3 * h ); horiz->addWidget( d->printers, 3 ); @@ -1271,9 +1271,9 @@ TQGroupBox * TQPrintDialog::setupOptions() connect( d->copies, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(setNumCopies(int)) ); - TQSize s = d->firstPageLabel->tqsizeHint() - .expandedTo( d->lastPageLabel->tqsizeHint() ) - .expandedTo( l->tqsizeHint() ); + TQSize s = d->firstPageLabel->sizeHint() + .expandedTo( d->lastPageLabel->sizeHint() ) + .expandedTo( l->sizeHint() ); d->firstPageLabel->setMinimumSize( s ); d->lastPageLabel->setMinimumSize( s ); l->setMinimumSize( s.width() + 19, s.height() ); diff --git a/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp b/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp index 74bf69f..a6f04b6 100644 --- a/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp +++ b/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(); } diff --git a/tqtinterface/qt4/src/dialogs/tqprogressdialog.h b/tqtinterface/qt4/src/dialogs/tqprogressdialog.h index 96ed191..b514047 100644 --- a/tqtinterface/qt4/src/dialogs/tqprogressdialog.h +++ b/tqtinterface/qt4/src/dialogs/tqprogressdialog.h @@ -85,7 +85,7 @@ public: int totalSteps() const; int progress() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQString labelText() const; diff --git a/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp b/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp index dc670a9..70edca2 100644 --- a/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp +++ b/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp @@ -936,7 +936,7 @@ void TQTabDialog::setSizes() int bh = s.height(); if ( d->ok ) { - s = d->ok->tqsizeHint(); + s = d->ok->sizeHint(); if ( s.width() > bw ) bw = s.width(); if ( s.height() > bh ) @@ -944,7 +944,7 @@ void TQTabDialog::setSizes() } if ( d->ab ) { - s = d->ab->tqsizeHint(); + s = d->ab->sizeHint(); if ( s.width() > bw ) bw = s.width(); if ( s.height() > bh ) @@ -952,7 +952,7 @@ void TQTabDialog::setSizes() } if ( d->db ) { - s = d->db->tqsizeHint(); + s = d->db->sizeHint(); if ( s.width() > bw ) bw = s.width(); if ( s.height() > bh ) @@ -960,7 +960,7 @@ void TQTabDialog::setSizes() } if ( d->hb ) { - s = d->hb->tqsizeHint(); + s = d->hb->sizeHint(); if ( s.width() > bw ) bw = s.width(); if ( s.height() > bh ) @@ -968,7 +968,7 @@ void TQTabDialog::setSizes() } if ( d->cb ) { - s = d->cb->tqsizeHint(); + s = d->cb->sizeHint(); if ( s.width() > bw ) bw = s.width(); if ( s.height() > bh ) diff --git a/tqtinterface/qt4/src/iconview/tqiconview.cpp b/tqtinterface/qt4/src/iconview/tqiconview.cpp index e95ff47..87054cf 100644 --- a/tqtinterface/qt4/src/iconview/tqiconview.cpp +++ b/tqtinterface/qt4/src/iconview/tqiconview.cpp @@ -6011,12 +6011,12 @@ void TQIconView::sort( bool ascending ) \reimp */ -TQSize TQIconView::tqsizeHint() const +TQSize TQIconView::sizeHint() const { constPolish(); if ( !d->firstItem ) - return TQScrollView::tqsizeHint(); + return TQScrollView::sizeHint(); if ( d->dirty && d->firstSizeHint ) { ( (TQIconView*)this )->resizeContents( TQMAX( 400, contentsWidth() ), diff --git a/tqtinterface/qt4/src/iconview/tqiconview.h b/tqtinterface/qt4/src/iconview/tqiconview.h index 9ca8a42..0f6f78b 100644 --- a/tqtinterface/qt4/src/iconview/tqiconview.h +++ b/tqtinterface/qt4/src/iconview/tqiconview.h @@ -386,7 +386,7 @@ public: bool eventFilter( TQObject * o, TQEvent * ); TQSize tqminimumSizeHint() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; virtual void sort( bool ascending = TRUE ); diff --git a/tqtinterface/qt4/src/kernel/qt_kernel.pri b/tqtinterface/qt4/src/kernel/qt_kernel.pri index aa76de0..492b7b5 100644 --- a/tqtinterface/qt4/src/kernel/qt_kernel.pri +++ b/tqtinterface/qt4/src/kernel/qt_kernel.pri @@ -72,8 +72,8 @@ kernel { $$KERNEL_H/tqsignalmapper.h \ $$KERNEL_H/tqsignalslotimp.h \ $$KERNEL_H/tqsize.h \ - $$KERNEL_H/tqsizegrip.h \ - $$KERNEL_H/tqsizepolicy.h \ + $$KERNEL_H/sizegrip.h \ + $$KERNEL_H/sizepolicy.h \ $$KERNEL_H/tqsocketnotifier.h \ $$KERNEL_H/tqsound.h \ $$KERNEL_H/tqstyle.h \ @@ -222,7 +222,7 @@ kernel { $$KERNEL_CPP/tqsignal.cpp \ $$KERNEL_CPP/tqsignalmapper.cpp \ $$KERNEL_CPP/tqsize.cpp \ - $$KERNEL_CPP/tqsizegrip.cpp \ + $$KERNEL_CPP/sizegrip.cpp \ $$KERNEL_CPP/tqstyle.cpp \ $$KERNEL_CPP/tqsocketnotifier.cpp \ $$KERNEL_CPP/tqsound.cpp \ diff --git a/tqtinterface/qt4/src/kernel/tqabstractlayout.cpp b/tqtinterface/qt4/src/kernel/tqabstractlayout.cpp index 4c15ee2..a40822c 100644 --- a/tqtinterface/qt4/src/kernel/tqabstractlayout.cpp +++ b/tqtinterface/qt4/src/kernel/tqabstractlayout.cpp @@ -55,7 +55,7 @@ layouts. If \a b is TRUE, margin handling needs to be implemented in - setGeometry(), tqmaximumSize(), tqminimumSize(), tqsizeHint() and + setGeometry(), tqmaximumSize(), tqminimumSize(), sizeHint() and heightForWidth(). \sa supportsMargin() @@ -100,7 +100,7 @@ static int menuBarHeightForWidth( TQMenuBar *menubar, int w ) This is used by custom layouts. Pure virtual functions are provided to return information about - the tqlayout, including, tqsizeHint(), tqminimumSize(), tqmaximumSize() + the tqlayout, including, sizeHint(), tqminimumSize(), tqmaximumSize() and expandingDirections(). The tqlayout's tqgeometry can be set and retrieved with setGeometry() @@ -173,7 +173,7 @@ static int menuBarHeightForWidth( TQMenuBar *menubar, int w ) */ /*! - \fn TQSize TQLayoutItem::tqsizeHint() const + \fn TQSize TQLayoutItem::sizeHint() const Implemented in subclasses to return the preferred size of this item. */ @@ -403,7 +403,7 @@ void TQWidgetItem::setGeometry( const TQRect &r ) int x = r.x(); int y = r.y(); if ( align & (TQt::AlignHorizontal_Mask | TQt::AlignVertical_Mask) ) { - TQSize pref = wid->tqsizeHint().expandedTo( wid->tqminimumSize() ); //### + TQSize pref = wid->sizeHint().expandedTo( wid->tqminimumSize() ); //### if ( align & TQt::AlignHorizontal_Mask ) s.setWidth( TQMIN( s.width(), pref.width() ) ); if ( align & TQt::AlignVertical_Mask ) { @@ -535,7 +535,7 @@ TQ_SPExpandData TQSpacerItem::expandingDirections() const /*! Returns whether this item's widget can make use of more space than - tqsizeHint(). A value of \c Vertical or \c Horizontal means that it wants + sizeHint(). A value of \c Vertical or \c Horizontal means that it wants to grow in only one dimension, whereas \c BothDirections means that it wants to grow in both dimensions and \c NoDirection means that it doesn't want to grow at all. @@ -657,7 +657,7 @@ TQSize TQWidgetItem::tqmaximumSize() const /*! Returns the preferred size of this spacer item. */ -TQSize TQSpacerItem::tqsizeHint() const +TQSize TQSpacerItem::sizeHint() const { return QSpacerItem::sizeHint(); } @@ -668,7 +668,7 @@ TQSize TQSpacerItem::tqsizeHint() const /*! Returns the preferred size of this spacer item. */ -TQSize TQSpacerItem::tqsizeHint() const +TQSize TQSpacerItem::sizeHint() const { return TQSize( width, height ); } @@ -678,13 +678,13 @@ TQSize TQSpacerItem::tqsizeHint() const /*! Returns the preferred size of this item. */ -TQSize TQWidgetItem::tqsizeHint() const +TQSize TQWidgetItem::sizeHint() const { TQSize s; if ( isEmpty() ) { s = TQSize( 0, 0 ); } else { - s = wid->tqsizeHint(); + s = wid->sizeHint(); if ( TQT_TQSIZEPOLICY_OBJECT(wid->sizePolicy()).horData() == TQSizePolicy::Ignored ) s.setWidth( 1 ); if ( TQT_TQSIZEPOLICY_OBJECT(wid->sizePolicy()).verData() == TQSizePolicy::Ignored ) @@ -732,7 +732,7 @@ bool TQWidgetItem::isEmpty() const overview page \endlink for more information. To make your own tqlayout manager, subclass TQGLayoutIterator and - implement the functions addItem(), tqsizeHint(), setGeometry(), and + implement the functions addItem(), sizeHint(), setGeometry(), and iterator(). You should also implement tqminimumSize() to ensure your tqlayout isn't resized to zero size if there is too little space. To support tqchildren whose heights depend on their widths, implement @@ -1145,7 +1145,7 @@ TQSize TQLayout::totalSizeHint() const } int b = ( topLevel && !marginImpl ) ? 2 * outsideBorder : 0; - TQSize s = tqsizeHint(); + TQSize s = sizeHint(); if ( hasHeightForWidth() ) s.setHeight( heightForWidth(s.width()) ); int h = b; @@ -1303,7 +1303,7 @@ TQSize TQLayout::tqmaximumSize() const /*! Returns whether this tqlayout can make use of more space than - tqsizeHint(). A value of \c Vertical or \c Horizontal means that it wants + sizeHint(). A value of \c Vertical or \c Horizontal means that it wants to grow in only one dimension, whereas \c BothDirections means that it wants to grow in both dimensions. @@ -1390,7 +1390,7 @@ bool TQLayout::activate() if (ms.isValid()) mw->setMinimumSize( ms ); - // ideally only if tqsizeHint() or sizePolicy() has changed + // ideally only if sizeHint() or sizePolicy() has changed mw->updateGeometry(); return TRUE; } @@ -1421,7 +1421,7 @@ bool TQLayout::activate() The horizontal and vertical \l{SizeType}s are set in the usual constructor and can be queried using a variety of functions. - The hasHeightForWidth() flag indicates whether the widget's tqsizeHint() + The hasHeightForWidth() flag indicates whether the widget's sizeHint() is width-dependent (such as a word-wrapping label) or not. \sa TQSizePolicy::SizeType @@ -1433,35 +1433,35 @@ bool TQLayout::activate() The per-dimension sizing types used when constructing a TQSizePolicy are: - \value Fixed The TQWidget::tqsizeHint() is the only acceptable + \value Fixed The TQWidget::sizeHint() is the only acceptable alternative, so the widget can never grow or shrink (e.g. the vertical direction of a push button). - \value Minimum The tqsizeHint() is minimal, and sufficient. The + \value Minimum The sizeHint() is minimal, and sufficient. The widget can be expanded, but there is no advantage to it being larger (e.g. the horizontal direction of a push button). - It cannot be smaller than the size provided by tqsizeHint(). + It cannot be smaller than the size provided by sizeHint(). - \value Maximum The tqsizeHint() is a maximum. The widget can be + \value Maximum The sizeHint() is a maximum. The widget can be shrunk any amount without detriment if other widgets need the space (e.g. a separator line). - It cannot be larger than the size provided by tqsizeHint(). + It cannot be larger than the size provided by sizeHint(). - \value Preferred The tqsizeHint() is best, but the widget can be + \value Preferred The sizeHint() is best, but the widget can be shrunk and still be useful. The widget can be expanded, but there - is no advantage to it being larger than tqsizeHint() (the default + is no advantage to it being larger than sizeHint() (the default TQWidget policy). - \value Expanding The tqsizeHint() is a sensible size, but the + \value Expanding The sizeHint() is a sensible size, but the widget can be shrunk and still be useful. The widget can make use of extra space, so it should get as much space as possible (e.g. the horizontal direction of a slider). - \value MinimumExpanding The tqsizeHint() is minimal, and sufficient. + \value MinimumExpanding The sizeHint() is minimal, and sufficient. The widget can make use of extra space, so it should get as much space as possible (e.g. the horizontal direction of a slider). - \value Ignored the tqsizeHint() is ignored. The widget will get as + \value Ignored the sizeHint() is ignored. The widget will get as much space as possible. */ @@ -1475,13 +1475,13 @@ bool TQLayout::activate() any direction. \value Horizontally the widget can usefully be wider than the - tqsizeHint(). + sizeHint(). \value Vertically the widget can usefully be taller than the - tqsizeHint(). + sizeHint(). \value BothDirections the widget can usefully be both wider and - taller than the tqsizeHint(). + taller than the sizeHint(). */ /*! @@ -1543,7 +1543,7 @@ bool TQLayout::activate() \fn bool TQSizePolicy::mayShrinkHorizontally() const Returns TRUE if the widget can sensibly be narrower than its - tqsizeHint(); otherwise returns FALSE. + sizeHint(); otherwise returns FALSE. \sa mayShrinkVertically() mayGrowHorizontally() */ @@ -1552,7 +1552,7 @@ bool TQLayout::activate() \fn bool TQSizePolicy::mayShrinkVertically() const Returns TRUE if the widget can sensibly be shorter than its - tqsizeHint(); otherwise returns FALSE. + sizeHint(); otherwise returns FALSE. \sa mayShrinkHorizontally() mayGrowVertically() */ @@ -1561,7 +1561,7 @@ bool TQLayout::activate() \fn bool TQSizePolicy::mayGrowHorizontally() const Returns TRUE if the widget can sensibly be wider than its - tqsizeHint(); otherwise returns FALSE. + sizeHint(); otherwise returns FALSE. \sa mayGrowVertically() mayShrinkHorizontally() */ @@ -1570,7 +1570,7 @@ bool TQLayout::activate() \fn bool TQSizePolicy::mayGrowVertically() const Returns TRUE if the widget can sensibly be taller than its - tqsizeHint(); otherwise returns FALSE. + sizeHint(); otherwise returns FALSE. \sa mayGrowHorizontally() mayShrinkVertically() */ @@ -1579,7 +1579,7 @@ bool TQLayout::activate() \fn TQ_SPExpandData TQSizePolicy::expandingDirections() const Returns whether this tqlayout can make use of more space than - tqsizeHint(). A value of \c Vertical or \c Horizontal means that it wants + sizeHint(). A value of \c Vertical or \c Horizontal means that it wants to grow in only one dimension, whereas \c BothDirections means that it wants to grow in both dimensions. @@ -1847,7 +1847,7 @@ TQGLayoutIterator::~TQGLayoutIterator() height-for-width (hasHeightForWidth()), this is the same as \c Minimium; otherwise, this is the same as \c FreeResize. - \value Fixed The main widget's size is set to tqsizeHint(); it + \value Fixed The main widget's size is set to sizeHint(); it cannot be resized at all. \value Minimum The main widget's minimum size is set to tqminimumSize(); it cannot be smaller. @@ -1953,7 +1953,7 @@ void TQLayout::setAutoAdd( bool b ) layouts. If \a b is TRUE, margin handling needs to be implemented in - setGeometry(), tqmaximumSize(), tqminimumSize(), tqsizeHint() and + setGeometry(), tqmaximumSize(), tqminimumSize(), sizeHint() and heightForWidth(). \sa supportsMargin() @@ -1968,12 +1968,12 @@ void TQLayout::setSupportsMargin( bool b ) this tqlayout is set to \a r, provided that this tqlayout supports tqsetAlignment(). - The result is derived from tqsizeHint() and expandingDirections(). It is never + The result is derived from sizeHint() and expandingDirections(). It is never larger than \a r. */ TQRect TQLayout::alignmentRect( const TQRect &r ) const { - TQSize s = tqsizeHint(); + TQSize s = sizeHint(); int a = tqalignment(); /* diff --git a/tqtinterface/qt4/src/kernel/tqapplication.cpp b/tqtinterface/qt4/src/kernel/tqapplication.cpp index af193c9..b8c1c79 100644 --- a/tqtinterface/qt4/src/kernel/tqapplication.cpp +++ b/tqtinterface/qt4/src/kernel/tqapplication.cpp @@ -2480,7 +2480,7 @@ void TQApplication::setColorSpec( int spec ) Example: \code - TQSize& WidgetClass::tqsizeHint() const + TQSize& WidgetClass::sizeHint() const { return TQSize( 80, 25 ).expandedTo( TQApplication::globalStrut() ); } diff --git a/tqtinterface/qt4/src/kernel/tqapplication.cpp~ b/tqtinterface/qt4/src/kernel/tqapplication.cpp~ index ff60776..9e2bdd2 100644 --- a/tqtinterface/qt4/src/kernel/tqapplication.cpp~ +++ b/tqtinterface/qt4/src/kernel/tqapplication.cpp~ @@ -2480,7 +2480,7 @@ void TQApplication::setColorSpec( int spec ) Example: \code - TQSize& WidgetClass::tqsizeHint() const + TQSize& WidgetClass::sizeHint() const { return TQSize( 80, 25 ).expandedTo( TQApplication::globalStrut() ); } diff --git a/tqtinterface/qt4/src/kernel/tqlayout.cpp b/tqtinterface/qt4/src/kernel/tqlayout.cpp index e9f5493..a5c86dd 100644 --- a/tqtinterface/qt4/src/kernel/tqlayout.cpp +++ b/tqtinterface/qt4/src/kernel/tqlayout.cpp @@ -46,7 +46,7 @@ #include "tqwidget.h" #include "tqmenubar.h" #include "tqptrlist.h" -#include "tqsizepolicy.h" +#include "sizepolicy.h" #include "tqlayoutengine_p.h" @@ -98,7 +98,7 @@ TQLayout *TQLayout::tqlayout() { return this; } -TQSize TQLayout::tqsizeHint() const { +TQSize TQLayout::sizeHint() const { return sizeHint(); } @@ -1451,7 +1451,7 @@ public: { item_ = TQT_TQLAYOUTITEM(new TQSpacerItem( w, h, hData, vData )); } ~TQGridBox() { delete item_; } - QSize tqsizeHint() const { return item_->sizeHint(); } + QSize sizeHint() const { return item_->sizeHint(); } QSize tqminimumSize() const { return item_->minimumSize(); } QSize tqmaximumSize() const { return item_->maximumSize(); } TQ_SPExpandData expandingDirections() const { return item_->expandingDirections(); } @@ -1505,7 +1505,7 @@ public: void add( TQGridBox*, int row, int col ); void add( TQGridBox*, int row1, int row2, int col1, int col2 ); - QSize tqsizeHint( int ) const; + QSize sizeHint( int ) const; QSize tqminimumSize( int ) const; QSize tqmaximumSize( int ) const; @@ -1650,7 +1650,7 @@ void TQGridLayoutData::recalcHFW( int w, int spacing ) int mh = 0; int n = 0; for ( int r = 0; r < rr; r++ ) { - h += rData[r].tqsizeHint; + h += rData[r].sizeHint; mh += rData[r].tqminimumSize; if ( !rData[r].empty ) n++; @@ -1765,9 +1765,9 @@ TQ_SPExpandData TQGridLayoutData::expanding( int spacing ) return (TQ_SPExpandData) ret; } -QSize TQGridLayoutData::tqsizeHint( int spacer ) const +QSize TQGridLayoutData::sizeHint( int spacer ) const { - return tqfindSize( &TQLayoutStruct::tqsizeHint, spacer ); + return tqfindSize( &TQLayoutStruct::sizeHint, spacer ); } QSize TQGridLayoutData::tqmaximumSize( int spacer ) const @@ -1878,7 +1878,7 @@ void TQGridLayoutData::add( TQGridBox *box, int row1, int row2, int col1, void TQGridLayoutData::addData( TQGridBox *box, bool r, bool c ) { - TQSize hint = box->tqsizeHint(); + TQSize hint = box->sizeHint(); TQSize minS = box->tqminimumSize(); TQSize maxS = box->tqmaximumSize(); @@ -1886,8 +1886,8 @@ void TQGridLayoutData::addData( TQGridBox *box, bool r, bool c ) if ( !cStretch[box->col] ) colData[box->col].stretch = TQMAX( colData[box->col].stretch, box->hStretch() ); - colData[box->col].tqsizeHint = TQMAX( hint.width(), - colData[box->col].tqsizeHint ); + colData[box->col].sizeHint = TQMAX( hint.width(), + colData[box->col].sizeHint ); colData[box->col].tqminimumSize = TQMAX( minS.width(), colData[box->col].tqminimumSize ); @@ -1899,8 +1899,8 @@ void TQGridLayoutData::addData( TQGridBox *box, bool r, bool c ) if ( !rStretch[box->row] ) rowData[box->row].stretch = TQMAX( rowData[box->row].stretch, box->vStretch() ); - rowData[box->row].tqsizeHint = TQMAX( hint.height(), - rowData[box->row].tqsizeHint ); + rowData[box->row].sizeHint = TQMAX( hint.height(), + rowData[box->row].sizeHint ); rowData[box->row].tqminimumSize = TQMAX( minS.height(), rowData[box->row].tqminimumSize ); @@ -1935,7 +1935,7 @@ void TQGridLayoutData::addData( TQGridBox *box, bool r, bool c ) static void distributeMultiBox( TQMemArray<TQLayoutStruct> &chain, int spacing, int start, int end, - int minSize, int tqsizeHint, + int minSize, int sizeHint, TQMemArray<int> &stretchArray, int stretch ) { int i; @@ -1944,7 +1944,7 @@ static void distributeMultiBox( TQMemArray<TQLayoutStruct> &chain, int spacing, int max = 0; for ( i = start; i <= end; i++ ) { w += chain[i].tqminimumSize; - wh += chain[i].tqsizeHint; + wh += chain[i].sizeHint; max += chain[i].tqmaximumSize; chain[i].empty = FALSE; if ( stretchArray[i] == 0 ) @@ -1983,11 +1983,11 @@ static void distributeMultiBox( TQMemArray<TQLayoutStruct> &chain, int spacing, } } - if ( wh < tqsizeHint ) { - qGeomCalc( chain, start, end - start + 1, 0, tqsizeHint, spacing ); + if ( wh < sizeHint ) { + qGeomCalc( chain, start, end - start + 1, 0, sizeHint, spacing ); for ( i = start; i <= end; i++ ) { - if ( chain[i].tqsizeHint < chain[i].size ) - chain[i].tqsizeHint = chain[i].size; + if ( chain[i].sizeHint < chain[i].size ) + chain[i].sizeHint = chain[i].size; } } } @@ -2031,7 +2031,7 @@ void TQGridLayoutData::setupLayoutData( int spacing ) if ( c2 < 0 ) c2 = cc - 1; - TQSize hint = box->tqsizeHint(); + TQSize hint = box->sizeHint(); TQSize min = box->tqminimumSize(); if ( box->hasHeightForWidth() ) has_hfw = TRUE; @@ -2065,13 +2065,13 @@ void TQGridLayoutData::addHfwData( TQGridBox *box, int width ) TQMemArray<TQLayoutStruct> &rData = *hfwData; if ( box->hasHeightForWidth() ) { int hint = box->heightForWidth( width ); - rData[box->row].tqsizeHint = TQMAX( hint, rData[box->row].tqsizeHint ); + rData[box->row].sizeHint = TQMAX( hint, rData[box->row].sizeHint ); rData[box->row].tqminimumSize = TQMAX( hint, rData[box->row].tqminimumSize ); } else { - TQSize hint = box->tqsizeHint(); + TQSize hint = box->sizeHint(); TQSize minS = box->tqminimumSize(); - rData[box->row].tqsizeHint = TQMAX( hint.height(), - rData[box->row].tqsizeHint ); + rData[box->row].sizeHint = TQMAX( hint.height(), + rData[box->row].sizeHint ); rData[box->row].tqminimumSize = TQMAX( minS.height(), rData[box->row].tqminimumSize ); } @@ -2079,7 +2079,7 @@ void TQGridLayoutData::addHfwData( TQGridBox *box, int width ) /* Similar to setupLayoutData(), but uses heightForWidth(colData) - instead of tqsizeHint(). Assumes that setupLayoutData() and + instead of sizeHint(). Assumes that setupLayoutData() and qGeomCalc(colData) has been called. */ void TQGridLayoutData::setupHfwLayoutData( int spacing ) @@ -2088,7 +2088,7 @@ void TQGridLayoutData::setupHfwLayoutData( int spacing ) int i; for ( i = 0; i < rr; i++ ) { rData[i] = rowData[i]; - rData[i].tqminimumSize = rData[i].tqsizeHint = 0; + rData[i].tqminimumSize = rData[i].sizeHint = 0; } TQPtrListIterator<TQGridBox> it( things ); TQGridBox * box; @@ -2114,7 +2114,7 @@ void TQGridLayoutData::setupHfwLayoutData( int spacing ) if ( r1 == r2 ) { addHfwData( box, w ); } else { - TQSize hint = box->tqsizeHint(); + TQSize hint = box->sizeHint(); TQSize min = box->tqminimumSize(); if ( box->hasHeightForWidth() ) { int hfwh = box->heightForWidth( w ); @@ -2465,9 +2465,9 @@ int TQGridLayout::numCols() const /*! Returns the preferred size of this grid. */ -TQSize TQGridLayout::tqsizeHint() const +TQSize TQGridLayout::sizeHint() const { - return data->tqsizeHint( spacing() ) + TQSize( 2 * margin(), 2 * margin() ); + return data->sizeHint( spacing() ) + TQSize( 2 * margin(), 2 * margin() ); } /*! @@ -2641,7 +2641,7 @@ void TQGridLayout::addMultiCell( QLayoutItem *item, int fromRow, int toRow, \i From TQt 3.0, the \a tqalignment parameter is interpreted more aggressively than in previous versions of TQt. A non-default tqalignment now indicates that the widget should not grow to fill - the available space, but should be sized according to tqsizeHint(). + the available space, but should be sized according to sizeHint(). \endlist \sa addMultiCellWidget() @@ -2673,7 +2673,7 @@ void TQGridLayout::addWidget( TQWidget *w, int row, int col, int tqalignment ) A non-zero tqalignment indicates that the widget should not grow to fill the available space but should be sized according to - tqsizeHint(). + sizeHint(). \sa addWidget() */ @@ -2714,7 +2714,7 @@ void TQGridLayout::addLayout( TQLayout *tqlayout, int row, int col ) A non-zero tqalignment indicates that the tqlayout should not grow to fill the available space but should be sized according to - tqsizeHint(). + sizeHint(). \a tqlayout becomes a child of the grid tqlayout. @@ -2858,7 +2858,7 @@ int TQGridLayout::colSpacing( int col ) const /*! Returns whether this tqlayout can make use of more space than - tqsizeHint(). A value of \c Vertical or \c Horizontal means that it wants + sizeHint(). A value of \c Vertical or \c Horizontal means that it wants to grow in only one dimension, whereas \c BothDirections means that it wants to grow in both dimensions. */ @@ -2998,7 +2998,7 @@ public: int hfwWidth; int hfwHeight; int hfwMinHeight; - TQSize tqsizeHint; + TQSize sizeHint; TQSize minSize; TQSize maxSize; TQ_SPExpandData expanding; @@ -3206,13 +3206,13 @@ TQBoxLayout::~TQBoxLayout() /*! Returns the preferred size of this box tqlayout. */ -TQSize TQBoxLayout::tqsizeHint() const +TQSize TQBoxLayout::sizeHint() const { if ( data->dirty ) { TQBoxLayout *that = (TQBoxLayout*)this; that->setupGeom(); } - return data->tqsizeHint + TQSize( 2 * margin(), 2 * margin() ); + return data->sizeHint + TQSize( 2 * margin(), 2 * margin() ); } /*! @@ -3328,7 +3328,7 @@ TQLayoutItem* TQBoxLayout::takeAt(int index) { /*! Returns whether this tqlayout can make use of more space than - tqsizeHint(). A value of \c Vertical or \c Horizontal means that it wants + sizeHint(). A value of \c Vertical or \c Horizontal means that it wants to grow in only one dimension, whereas \c BothDirections means that it wants to grow in both dimensions. */ @@ -3362,7 +3362,7 @@ void TQBoxLayout::setGeometry( const TQRect &r ) for ( int i = 0; i < n; i++ ) { TQBoxLayoutItem *box = data->list.at( i ); if ( box->item->hasHeightForWidth() ) - a[i].tqsizeHint = a[i].tqminimumSize = + a[i].sizeHint = a[i].tqminimumSize = box->item->heightForWidth( s.width() ); } } @@ -3528,7 +3528,7 @@ void TQBoxLayout::insertLayout( int index, TQLayout *tqlayout, int stretch ) From TQt 3.0, the \a tqalignment parameter is interpreted more aggressively than in previous versions of TQt. A non-default tqalignment now indicates that the widget should not grow to fill - the available space, but should be sized according to tqsizeHint(). + the available space, but should be sized according to sizeHint(). \sa setAutoAdd(), insertLayout(), insertSpacing() */ @@ -3592,7 +3592,7 @@ void TQBoxLayout::addStretch( int stretch ) From TQt 3.0, the \a tqalignment parameter is interpreted more aggressively than in previous versions of TQt. A non-default tqalignment now indicates that the widget should not grow to fill - the available space, but should be sized according to tqsizeHint(). + the available space, but should be sized according to sizeHint(). \sa insertWidget(), setAutoAdd(), addLayout(), addSpacing() */ @@ -3717,7 +3717,7 @@ void TQBoxLayout::setDirection( Direction direction ) if ( sp ) { if ( sp->expandingDirections() == TQSizePolicy::NoDirection ) { //spacing or strut - TQSize s = sp->tqsizeHint(); + TQSize s = sp->sizeHint(); sp->changeSize( s.height(), s.width(), horz(direction) ? TQSizePolicy::Fixed:TQSizePolicy::Minimum, horz(direction) ? TQSizePolicy::Minimum:TQSizePolicy::Fixed ); @@ -3795,7 +3795,7 @@ void TQBoxLayout::setupGeom() minh = TQMAX( minh, min.height() ); hinth = TQMAX( hinth, hint.height() ); - a[i].tqsizeHint = hint.width(); + a[i].sizeHint = hint.width(); a[i].tqmaximumSize = max.width(); a[i].tqminimumSize = min.width(); a[i].expansive = expand; @@ -3812,7 +3812,7 @@ void TQBoxLayout::setupGeom() minw = TQMAX( minw, min.width() ); hintw = TQMAX( hintw, hint.width() ); - a[i].tqsizeHint = hint.height(); + a[i].sizeHint = hint.height(); a[i].tqmaximumSize = max.height(); a[i].tqminimumSize = min.height(); a[i].expansive = expand; @@ -3831,7 +3831,7 @@ void TQBoxLayout::setupGeom() ( (horexp ? TQSizePolicy::Horizontally : 0) | (verexp ? TQSizePolicy::Vertically : 0) ); - data->tqsizeHint = TQSize( hintw, hinth ) + data->sizeHint = TQSize( hintw, hinth ) .expandedTo( data->minSize ) .boundedTo( data->maxSize ); diff --git a/tqtinterface/qt4/src/kernel/tqlayout.h b/tqtinterface/qt4/src/kernel/tqlayout.h index 5423cad..d964838 100644 --- a/tqtinterface/qt4/src/kernel/tqlayout.h +++ b/tqtinterface/qt4/src/kernel/tqlayout.h @@ -52,7 +52,7 @@ #ifndef TQT_H #include "tqobject.h" -#include "tqsizepolicy.h" +#include "sizepolicy.h" #include "tqwidget.h" #endif // TQT_H @@ -170,7 +170,7 @@ public: virtual inline void tqinvalidate() { QLayoutItem::invalidate(); } virtual inline void invalidate() { tqinvalidate(); } -// inline virtual TQSize tqsizeHint() const { return QLayoutItem::sizeHint(); } +// inline virtual TQSize sizeHint() const { return QLayoutItem::sizeHint(); } // inline virtual TQSize tqminimumSize() const { return QLayoutItem::minimumSize(); } // inline virtual TQSize tqmaximumSize() const { return QLayoutItem::maximumSize(); } // inline virtual void setGeometry( const TQRect&r ) { QLayoutItem::setGeometry(r); } @@ -178,7 +178,7 @@ public: // inline virtual TQ_SPExpandData expandingDirections() const { return QLayoutItem::expandingDirections(); } // These functions are pure virtual in Qt4 - inline TQSize tqsizeHint() const { return sizeHint(); } + inline TQSize sizeHint() const { return sizeHint(); } inline TQSize tqminimumSize() const { return minimumSize(); } inline TQSize tqmaximumSize() const { return maximumSize(); } // inline void setGeometry( const TQRect&r ) { TQ_UNUSED(r); } @@ -189,7 +189,7 @@ public: // This requires that the base virtual Qt functions be reimplemented so as to point to the TQt virtual functions instead as shown below. // This way, when Trinity overrides a TQt virtual function, the calling Qt code will blithely use the overriden TQt function instead. #define QLAYOUTITEM_REQUIRED_FUNCTIONS \ - virtual inline QSize sizeHint() const { return tqsizeHint(); } \ + virtual inline QSize sizeHint() const { return sizeHint(); } \ virtual inline QSize minimumSize() const { return tqminimumSize(); } \ virtual inline QSize maximumSize() const { return tqmaximumSize(); } \ virtual inline void setGeometry( const QRect &r ) { return setGeometry( TQT_TQRECT_OBJECT(r) ); } \ @@ -211,7 +211,7 @@ public: // virtual int heightForWidth( int ) const; // virtual TQLayoutIterator iterator(); // -// virtual TQSize tqsizeHint() const = 0; +// virtual TQSize sizeHint() const = 0; // virtual TQSize tqminimumSize() const = 0; // virtual TQSize tqmaximumSize() const = 0; // virtual void setGeometry( const TQRect& ) = 0; @@ -223,7 +223,7 @@ public: // // Use the TQt virtual functions, not the built in Qt ones... // // This requires that the base virtual Qt functions be reimplemented so as to point to the TQt virtual functions instead as shown below. // // This way, when Trinity overrides a TQt virtual function, the calling Qt code will blithely use the overriden TQt function instead. -// inline QSize sizeHint() const { return tqsizeHint(); } +// inline QSize sizeHint() const { return sizeHint(); } // inline QSize minimumSize() const { return tqminimumSize(); } // inline QSize maximumSize() const { return tqmaximumSize(); } // inline void setGeometry( const QRect &r ) { return TQLayoutItem::setGeometry( r ); } @@ -240,7 +240,7 @@ class TQ_EXPORT TQLayoutItem public: TQLayoutItem( int tqalignment = 0 ) : align( tqalignment ) { } virtual ~TQLayoutItem(); - virtual TQSize tqsizeHint() const = 0; + virtual TQSize sizeHint() const = 0; virtual TQSize tqminimumSize() const = 0; virtual TQSize tqmaximumSize() const = 0; virtual TQ_SPExpandData expandingDirections() const = 0; @@ -278,7 +278,7 @@ public: TQ_SPExpandData expandingDirections() const; // Used by tqabstractlayout.cpp bool isEmpty() const; // Used by tqabstractlayout.cpp - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSize() const; TQSize tqmaximumSize() const; void setGeometry( const TQRect &qr ); @@ -287,7 +287,7 @@ public: // Use the TQt virtual functions, not the built in Qt ones... // This requires that the base virtual Qt functions be reimplemented so as to point to the TQt virtual functions instead as shown below. // This way, when Trinity overrides a TQt virtual function, the calling Qt code will blithely use the overriden TQt function instead. - inline QSize sizeHint() const { return tqsizeHint(); } + inline QSize sizeHint() const { return sizeHint(); } inline QSize minimumSize() const { return tqminimumSize(); } inline QSize maximumSize() const { return tqmaximumSize(); } inline void setGeometry( const QRect &r ) { return TQSpacerItem::setGeometry( TQT_TQRECT_OBJECT(r) ); } @@ -306,7 +306,7 @@ public: void changeSize( int w, int h, TQSizePolicy::SizeType hData = TQSizePolicy::Minimum, TQSizePolicy::SizeType vData = TQSizePolicy::Minimum ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSize() const; TQSize tqmaximumSize() const; TQ_SPExpandData expandingDirections() const; @@ -328,7 +328,7 @@ class TQ_EXPORT TQWidgetItem : public TQLayoutItem { public: TQWidgetItem( TQWidget *w ) : wid( w ) { } - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSize() const; TQSize tqmaximumSize() const; TQ_SPExpandData expandingDirections() const; @@ -369,7 +369,7 @@ public: virtual TQ_SPExpandData expandingDirections() const; TQLayout *tqlayout(); - virtual TQSize tqsizeHint() const; + virtual TQSize sizeHint() const; virtual TQSize tqminimumSize() const; virtual TQSize tqmaximumSize() const; @@ -652,7 +652,7 @@ inline void TQLayoutIterator::deleteCurrent() int count() const; \ TQLayoutItem* itemAt(int index) const; \ TQLayoutItem* takeAt(int index); \ - virtual inline QSize sizeHint() const { return tqsizeHint(); } \ + virtual inline QSize sizeHint() const { return sizeHint(); } \ virtual inline QSize minimumSize() const { return tqminimumSize(); } \ virtual inline QSize maximumSize() const { return tqmaximumSize(); } \ virtual inline void setGeometry( const QRect &r ) { return setGeometry( TQT_TQRECT_OBJECT(r) ); } \ @@ -720,7 +720,7 @@ public: delete hack; } - inline TQSize tqsizeHint() const { return sizeHint(); } + inline TQSize sizeHint() const { return sizeHint(); } inline TQSize tqminimumSize() const { return minimumSize(); } inline TQSize tqmaximumSize() const { return maximumSize(); } inline void tqinvalidate() { invalidate(); } @@ -956,7 +956,7 @@ public: int spacing = -1, const char *name = 0 ); ~TQGridLayout(); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSize() const; TQSize tqmaximumSize() const; @@ -1064,7 +1064,7 @@ public: bool setStretchFactor( TQWidget*, int stretch ); bool setStretchFactor( TQLayout *l, int stretch ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSize() const; TQSize tqmaximumSize() const; diff --git a/tqtinterface/qt4/src/kernel/tqlayoutengine.cpp b/tqtinterface/qt4/src/kernel/tqlayoutengine.cpp index 7dca5e0..8c364d9 100644 --- a/tqtinterface/qt4/src/kernel/tqlayoutengine.cpp +++ b/tqtinterface/qt4/src/kernel/tqlayoutengine.cpp @@ -256,7 +256,7 @@ TQ_EXPORT TQSize tqSmartMinSize( const TQWidgetItem *i ) if ( TQT_TQSIZEPOLICY_OBJECT(w->sizePolicy()).mayShrinkHorizontally() ) { s.setWidth( w->tqminimumSizeHint().width() ); } else { - sh = w->tqsizeHint(); + sh = w->sizeHint(); s.setWidth( sh.width() ); } } @@ -266,7 +266,7 @@ TQ_EXPORT TQSize tqSmartMinSize( const TQWidgetItem *i ) s.setHeight( w->tqminimumSizeHint().height() ); } else { s.setHeight( sh.isValid() ? sh.height() - : w->tqsizeHint().height() ); + : w->sizeHint().height() ); } } } @@ -298,11 +298,11 @@ TQ_EXPORT TQSize tqSmartMaxSize( const TQWidgetItem *i, int align ) TQSize s = w->tqmaximumSize(); if ( s.width() == TQWIDGETSIZE_MAX && !(align & TQt::AlignHorizontal_Mask) ) if ( !TQT_TQSIZEPOLICY_OBJECT(w->sizePolicy()).mayGrowHorizontally() ) - s.setWidth( w->tqsizeHint().width() ); + s.setWidth( w->sizeHint().width() ); if ( s.height() == TQWIDGETSIZE_MAX && !(align & TQt::AlignVertical_Mask) ) if ( !TQT_TQSIZEPOLICY_OBJECT(w->sizePolicy()).mayGrowVertically() ) - s.setHeight( w->tqsizeHint().height() ); + s.setHeight( w->sizeHint().height() ); s = s.expandedTo( w->tqminimumSize() ); diff --git a/tqtinterface/qt4/src/kernel/tqlayoutengine_p.h b/tqtinterface/qt4/src/kernel/tqlayoutengine_p.h index 9c8064b..bf6876e 100644 --- a/tqtinterface/qt4/src/kernel/tqlayoutengine_p.h +++ b/tqtinterface/qt4/src/kernel/tqlayoutengine_p.h @@ -69,19 +69,19 @@ struct TQLayoutStruct { inline void init( int stretchFactor = 0, int spacing = 0 ) { stretch = stretchFactor; - tqminimumSize = tqsizeHint = spacing; + tqminimumSize = sizeHint = spacing; tqmaximumSize = TQLAYOUTSIZE_MAX; expansive = FALSE; empty = TRUE; } TQCOORD smartSizeHint() { - return ( stretch > 0 ) ? tqminimumSize : tqsizeHint; + return ( stretch > 0 ) ? tqminimumSize : sizeHint; } // parameters int stretch; - TQCOORD tqsizeHint; + TQCOORD sizeHint; TQCOORD tqmaximumSize; TQCOORD tqminimumSize; bool expansive; diff --git a/tqtinterface/qt4/src/kernel/tqobject.cpp b/tqtinterface/qt4/src/kernel/tqobject.cpp index 9bec024..5e87d6f 100644 --- a/tqtinterface/qt4/src/kernel/tqobject.cpp +++ b/tqtinterface/qt4/src/kernel/tqobject.cpp @@ -817,7 +817,7 @@ void TQObject::timerEvent( TQTimerEvent * ) TQApplication::sendPostedEvents( this, TQEvent::ChildInserted ); \endcode in functions that depend on the state. One notable example is - TQWidget::tqsizeHint(). + TQWidget::sizeHint(). \sa event(), TQChildEvent */ @@ -1774,7 +1774,7 @@ void TQObject::timerEvent( TQTimerEvent * ) TQApplication::sendPostedEvents( this, TQEvent::ChildInserted ); \endcode in functions that depend on the state. One notable example is - TQWidget::tqsizeHint(). + TQWidget::sizeHint(). \sa event(), TQChildEvent */ diff --git a/tqtinterface/qt4/src/kernel/tqrichtext.cpp b/tqtinterface/qt4/src/kernel/tqrichtext.cpp index 8b614d6..c518cc7 100644 --- a/tqtinterface/qt4/src/kernel/tqrichtext.cpp +++ b/tqtinterface/qt4/src/kernel/tqrichtext.cpp @@ -8232,7 +8232,7 @@ TQTextTableCell::~TQTextTableCell() richtext = 0; } -TQSize TQTextTableCell::tqsizeHint() const +TQSize TQTextTableCell::sizeHint() const { int extra = 2 * (parent->innerborder + parent->cellpadding + border_tolerance); int used = richtext->widthUsed() + extra; @@ -16164,7 +16164,7 @@ void TQTextTable::resize( int nwidth ) width = nwidth; tqlayout->tqinvalidate(); - int shw = tqlayout->tqsizeHint().width() + 2*outerborder; + int shw = tqlayout->sizeHint().width() + 2*outerborder; int mw = tqlayout->tqminimumSize().width() + 2*outerborder; if ( stretch ) width = TQMAX( mw, nwidth ); @@ -16488,7 +16488,7 @@ TQTextTableCell::~TQTextTableCell() richtext = 0; } -TQSize TQTextTableCell::tqsizeHint() const +TQSize TQTextTableCell::sizeHint() const { int extra = 2 * ( tqparent->innerborder + tqparent->cellpadding + border_tolerance); int used = richtext->widthUsed() + extra; diff --git a/tqtinterface/qt4/src/kernel/tqrichtext_p.h b/tqtinterface/qt4/src/kernel/tqrichtext_p.h index b9cbd98..291d708 100644 --- a/tqtinterface/qt4/src/kernel/tqrichtext_p.h +++ b/tqtinterface/qt4/src/kernel/tqrichtext_p.h @@ -615,7 +615,7 @@ public: TQMimeSourceFactory &factory, TQStyleSheet *sheet, const TQString& doc); virtual ~TQTextTableCell(); - TQSize tqsizeHint() const ; + TQSize sizeHint() const ; TQSize tqminimumSize() const ; TQSize tqmaximumSize() const ; Qt::Orientations expandingDirections() const; @@ -2788,7 +2788,7 @@ public: TQMimeSourceFactory &factory, TQStyleSheet *sheet, const TQString& doc ); virtual ~TQTextTableCell(); - TQSize tqsizeHint() const ; + TQSize sizeHint() const ; TQSize tqminimumSize() const ; TQSize tqmaximumSize() const ; TQ_SPExpandData expandingDirections() const; diff --git a/tqtinterface/qt4/src/kernel/tqsizegrip.cpp b/tqtinterface/qt4/src/kernel/tqsizegrip.cpp index bcea2db..f476651 100644 --- a/tqtinterface/qt4/src/kernel/tqsizegrip.cpp +++ b/tqtinterface/qt4/src/kernel/tqsizegrip.cpp @@ -38,7 +38,7 @@ ** **********************************************************************/ -#include "tqsizegrip.h" +#include "sizegrip.h" #ifndef TQT_NO_SIZEGRIP @@ -79,7 +79,7 @@ static TQWidget* qt_sizegrip_workspace( TQWidget* w ) /*! - \class TQSizeGrip tqsizegrip.h + \class TQSizeGrip sizegrip.h \brief The TQSizeGrip class provides a corner-grip for resizing a top-level window. @@ -153,9 +153,9 @@ TQSizeGrip::~TQSizeGrip() /*! Returns the size grip's size hint; this is a small size. */ -TQSize TQSizeGrip::tqsizeHint() const +TQSize TQSizeGrip::sizeHint() const { - return (tqstyle().tqsizeFromContents(TQStyle::CT_SizeGrip, this, TQSize(13, 13)). + return (tqstyle().sizeFromContents(TQStyle::CT_SizeGrip, this, TQSize(13, 13)). expandedTo(TQApplication::globalStrut())); } diff --git a/tqtinterface/qt4/src/kernel/tqsizegrip.h b/tqtinterface/qt4/src/kernel/tqsizegrip.h index fa893a2..2a01172 100644 --- a/tqtinterface/qt4/src/kernel/tqsizegrip.h +++ b/tqtinterface/qt4/src/kernel/tqsizegrip.h @@ -55,7 +55,7 @@ public: TQSizeGrip( TQWidget* tqparent, const char* name=0 ); ~TQSizeGrip(); - TQSize tqsizeHint() const; + TQSize sizeHint() const; protected: void paintEvent( TQPaintEvent * ); diff --git a/tqtinterface/qt4/src/kernel/tqstyle.h b/tqtinterface/qt4/src/kernel/tqstyle.h index 5d657d8..ce58adb 100644 --- a/tqtinterface/qt4/src/kernel/tqstyle.h +++ b/tqtinterface/qt4/src/kernel/tqstyle.h @@ -256,7 +256,7 @@ inline TQStyleOption::TQStyleOption(const QStyleOption& qso) { #define TQT_TQSTYLE_QT4_INTERFACE_VFUNC_01 inline void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w) const { TQ_UNUSED(opt); TQ_UNUSED(w); static_cast<const TQStyle*>(this)->tqdrawPrimitive(pe, static_cast<TQPainter*>(p), TQRect(), TQColorGroup()); } -#define TQT_TQSTYLE_QT4_INTERFACE_VFUNC_02 inline QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *w) const { return static_cast<const TQStyle*>(this)->tqsizeFromContents( ct, static_cast<const TQWidget*>(w), contentsSize, TQT_TQSTYLEOPTION_OBJECT(*opt) ); } +#define TQT_TQSTYLE_QT4_INTERFACE_VFUNC_02 inline QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *w) const { return static_cast<const TQStyle*>(this)->sizeFromContents( ct, static_cast<const TQWidget*>(w), contentsSize, TQT_TQSTYLEOPTION_OBJECT(*opt) ); } #define TQT_TQSTYLE_QT4_INTERFACE_VFUNC_03 inline QRect itemTextRect(const QFontMetrics &fm, const QRect &r, int flags, bool enabled, const QString &text) const { TQ_UNUSED(fm); return static_cast<const TQStyle*>(this)->tqitemRect(NULL, r, flags, enabled, NULL, text); } @@ -487,7 +487,7 @@ public: inline static TQRect tqvisualRect( const QRect &logical, const QRect &bounding ) { return visualRect(QApplication::layoutDirection(), bounding, logical); } // virtual void tqdrawPrimitiveBase( TQ_PrimitiveElement pe, TQPainter *p, const TQRect &r, const TQColorGroup &cg, SFlags flags = Style_Default, const TQStyleOption &opt = TQStyleOption::Default ) const = 0; - virtual TQSize tqsizeFromContents( ContentsType contents, const TQWidget *widget, const TQSize &contentsSize, const TQStyleOption& = TQStyleOption::Default ) const = 0; + virtual TQSize sizeFromContents( ContentsType contents, const TQWidget *widget, const TQSize &contentsSize, const TQStyleOption& = TQStyleOption::Default ) const = 0; virtual int tqstyleHint( TQ_StyleHint stylehint, const TQWidget *widget = 0, const TQStyleOption& = TQStyleOption::Default, TQStyleHintReturn* returnData = 0) const = 0; virtual TQRect subRect( SubRect r, const TQWidget *widget ) const = 0; // There doesn't seem to be a Qt4 equivalent for this virtual function; should it just be left as-is here? virtual TQRect tqitemRect( QPainter *p, const QRect &r, int flags, bool enabled, const QPixmap *pixmap, const QString &text, int len = -1 ) const; diff --git a/tqtinterface/qt4/src/kernel/tqt.h b/tqtinterface/qt4/src/kernel/tqt.h index 3e1fefa..e88f88e 100644 --- a/tqtinterface/qt4/src/kernel/tqt.h +++ b/tqtinterface/qt4/src/kernel/tqt.h @@ -44,7 +44,7 @@ #include <stdio.h> #include "tqtextstream.h" #include "tqfontinfo.h" -#include "tqsizepolicy.h" +#include "sizepolicy.h" #include "tqtl.h" #include "tqsize.h" #include "tqrect.h" @@ -195,7 +195,7 @@ #include <tqsignalslotimp.h> #include <tqsimplerichtext.h> #include "tqwmatrix.h" -#include <tqsizegrip.h> +#include <sizegrip.h> #include <tqabstractlayout.h> #include <tqsjiscodec.h> #include <tqslider.h> diff --git a/tqtinterface/qt4/src/kernel/tqtglobaldefines.h b/tqtinterface/qt4/src/kernel/tqtglobaldefines.h index 7fc3168..35de7c7 100644 --- a/tqtinterface/qt4/src/kernel/tqtglobaldefines.h +++ b/tqtinterface/qt4/src/kernel/tqtglobaldefines.h @@ -195,11 +195,11 @@ // #define tqcrossCursor Qt::CrossCursor // #define tqwaitCursor Qt::WaitCursor // #define tqibeamCursor Qt::IBeamCursor -// #define tqsizeVerCursor Qt::SizeVerCursor -// #define tqsizeHorCursor Qt::SizeHorCursor -// #define tqsizeBDiagCursor Qt::SizeBDiagCursor -// #define tqsizeFDiagCursor Qt::SizeFDiagCursor -// #define tqsizeAllCursor Qt::SizeAllCursor +// #define sizeVerCursor Qt::SizeVerCursor +// #define sizeHorCursor Qt::SizeHorCursor +// #define sizeBDiagCursor Qt::SizeBDiagCursor +// #define sizeFDiagCursor Qt::SizeFDiagCursor +// #define sizeAllCursor Qt::SizeAllCursor // #define tqblankCursor Qt::BlankCursor // #define tqsplitVCursor Qt::SplitVCursor // #define tqsplitHCursor Qt::SplitHCursor @@ -213,11 +213,11 @@ #define tqcrossCursor TQt::crossCursor #define tqwaitCursor TQt::waitCursor #define tqibeamCursor TQt::ibeamCursor -#define tqsizeVerCursor TQt::sizeVerCursor -#define tqsizeHorCursor TQt::sizeHorCursor -#define tqsizeBDiagCursor TQt::sizeBDiagCursor -#define tqsizeFDiagCursor TQt::sizeFDiagCursor -#define tqsizeAllCursor TQt::sizeAllCursor +#define sizeVerCursor TQt::sizeVerCursor +#define sizeHorCursor TQt::sizeHorCursor +#define sizeBDiagCursor TQt::sizeBDiagCursor +#define sizeFDiagCursor TQt::sizeFDiagCursor +#define sizeAllCursor TQt::sizeAllCursor #define tqblankCursor TQt::blankCursor #define tqsplitVCursor TQt::splitVCursor #define tqsplitHCursor TQt::splitHCursor diff --git a/tqtinterface/qt4/src/kernel/tqvariant.cpp b/tqtinterface/qt4/src/kernel/tqvariant.cpp index bd022e1..e80e190 100644 --- a/tqtinterface/qt4/src/kernel/tqvariant.cpp +++ b/tqtinterface/qt4/src/kernel/tqvariant.cpp @@ -60,7 +60,7 @@ #include "tqbitmap.h" #include "tqcursor.h" #include "tqdatetime.h" -#include "tqsizepolicy.h" +#include "sizepolicy.h" #include "tqshared.h" #include "tqbitarray.h" #include "tqkeysequence.h" diff --git a/tqtinterface/qt4/src/kernel/tqvariant.cpp.new b/tqtinterface/qt4/src/kernel/tqvariant.cpp.new index 22c05b3..3e41415 100644 --- a/tqtinterface/qt4/src/kernel/tqvariant.cpp.new +++ b/tqtinterface/qt4/src/kernel/tqvariant.cpp.new @@ -60,7 +60,7 @@ #include "tqbitmap.h" #include "tqcursor.h" #include "tqdatetime.h" -#include "tqsizepolicy.h" +#include "sizepolicy.h" #include "tqshared.h" #include "tqbitarray.h" #include "tqkeysequence.h" diff --git a/tqtinterface/qt4/src/kernel/tqwidget.cpp b/tqtinterface/qt4/src/kernel/tqwidget.cpp index 3bfdd86..c9d59d2 100644 --- a/tqtinterface/qt4/src/kernel/tqwidget.cpp +++ b/tqtinterface/qt4/src/kernel/tqwidget.cpp @@ -302,7 +302,7 @@ const TQRect TQWidget::tqgeometry() const { } QSize TQWidget::sizeHint() const { - return tqsizeHint(); + return sizeHint(); } QSize TQWidget::minimumSizeHint() const { @@ -436,7 +436,7 @@ void TQWidget::tqrepaint(const QRegion &rgn, bool) { repaint(rgn); } -TQSizePolicy TQWidget::tqsizePolicy() const { +TQSizePolicy TQWidget::sizePolicy() const { return TQT_TQSIZEPOLICY_OBJECT(sizePolicy()); } @@ -1447,13 +1447,13 @@ TQStyle* TQWidget::setStyle( const TQString &style ) } /*! - \property TQWidget::tqsizeHint + \property TQWidget::sizeHint \brief the recommended size for the widget If the value of this property is an invalid size, no size is recommended. - The default implementation of tqsizeHint() returns an invalid size + The default implementation of sizeHint() returns an invalid size if there is no tqlayout for this widget, and returns the tqlayout's preferred size otherwise. @@ -1461,7 +1461,7 @@ TQStyle* TQWidget::setStyle( const TQString &style ) setMinimumSize(), updateGeometry() */ -TQSize TQWidget::tqsizeHint() const +TQSize TQWidget::sizeHint() const { #ifndef TQT_NO_LAYOUT if ( tqlayout() ) @@ -2624,11 +2624,11 @@ int TQWidget::x11Depth() const { /*! Adjusts the size of the widget to fit the contents. - Uses tqsizeHint() if valid (i.e if the size hint's width and height + Uses sizeHint() if valid (i.e if the size hint's width and height are \>= 0), otherwise sets the size to the tqchildren rectangle (the union of all child widget geometries). - \sa tqsizeHint(), tqchildrenRect() + \sa sizeHint(), tqchildrenRect() */ void TQWidget::adjustSize() @@ -2637,7 +2637,7 @@ void TQWidget::adjustSize() TQApplication::sendPostedEvents( 0, TQEvent::LayoutHint ); if ( !testWState(WState_Polished) ) polish(); - TQSize s = tqsizeHint(); + TQSize s = sizeHint(); if ( isTopLevel() ) { @@ -2819,7 +2819,7 @@ WState TQWidget::testWState( TQt::WidgetState s ) const { height(), sizePolicy(), tqsetSizePolicy(), - tqsizeHint(), + sizeHint(), updateGeometry(), tqlayout(), move(), @@ -3091,11 +3091,11 @@ WState TQWidget::testWState( TQt::WidgetState s ) const { \i In the constructor, be sure to set up your member variables early on, before there's any chance that you might receive an event. - \i It is almost always useful to reimplement tqsizeHint() and to set + \i It is almost always useful to reimplement sizeHint() and to set the correct size policy with tqsetSizePolicy(), so users of your class can set up tqlayout management more easily. A size policy lets you supply good defaults for the tqlayout management handling, so that - other widgets can contain and manage yours easily. tqsizeHint() + other widgets can contain and manage yours easily. sizeHint() indicates a "good" size for the widget. \i If your widget is a top-level window, setCaption() and setIcon() set @@ -3205,7 +3205,7 @@ static TQPalette qt_naturalWidgetPalette( TQWidget* w ) { #endif TQSize qt_naturalWidgetSize( TQWidget *w ) { - TQSize s = w->tqsizeHint(); + TQSize s = w->sizeHint(); TQ_SPExpandData exp; #ifndef TQT_NO_LAYOUT if ( w->tqlayout() ) { @@ -4911,7 +4911,7 @@ void TQWidget::setMaximumHeight( int h ) Sets both the minimum and maximum width of the widget to \a w without changing the heights. Provided for convenience. - \sa tqsizeHint() tqminimumSize() tqmaximumSize() setFixedSize() + \sa sizeHint() tqminimumSize() tqmaximumSize() setFixedSize() */ void TQWidget::setFixedWidth( int w ) @@ -4925,7 +4925,7 @@ void TQWidget::setFixedWidth( int w ) Sets both the minimum and maximum heights of the widget to \a h without changing the widths. Provided for convenience. - \sa tqsizeHint() tqminimumSize() tqmaximumSize() setFixedSize() + \sa sizeHint() tqminimumSize() tqmaximumSize() setFixedSize() */ void TQWidget::setFixedHeight( int h ) @@ -6895,7 +6895,7 @@ void TQWidget::polish() Ensures that the widget is properly initialized by calling polish(). - Call constPolish() from functions like tqsizeHint() that depends on + Call constPolish() from functions like sizeHint() that depends on the widget being initialized, and that may be called before show(). @@ -7134,11 +7134,11 @@ TQRegion TQWidget::clipRegion() const /*! Adjusts the size of the widget to fit the contents. - Uses tqsizeHint() if valid (i.e if the size hint's width and height + Uses sizeHint() if valid (i.e if the size hint's width and height are \>= 0), otherwise sets the size to the tqchildren rectangle (the union of all child widget geometries). - \sa tqsizeHint(), tqchildrenRect() + \sa sizeHint(), tqchildrenRect() */ void TQWidget::adjustSize() @@ -7147,7 +7147,7 @@ void TQWidget::adjustSize() TQApplication::sendPostedEvents( 0, TQEvent::LayoutHint ); if ( !testWState(WState_Polished) ) polish(); - TQSize s = tqsizeHint(); + TQSize s = sizeHint(); if ( isTopLevel() ) { @@ -7184,13 +7184,13 @@ void TQWidget::adjustSize() /*! - \property TQWidget::tqsizeHint + \property TQWidget::sizeHint \brief the recommended size for the widget If the value of this property is an invalid size, no size is recommended. - The default implementation of tqsizeHint() returns an invalid size + The default implementation of sizeHint() returns an invalid size if there is no tqlayout for this widget, and returns the tqlayout's preferred size otherwise. @@ -7198,7 +7198,7 @@ void TQWidget::adjustSize() setMinimumSize(), updateGeometry() */ -TQSize TQWidget::tqsizeHint() const +TQSize TQWidget::sizeHint() const { #ifndef TQT_NO_LAYOUT if ( tqlayout() ) @@ -8455,7 +8455,7 @@ void TQWidget::setLayout( TQLayout *l ) The default policy is Preferred/Preferred, which means that the widget can be freely resized, but prefers to be the size - tqsizeHint() returns. Button-like widgets set the size policy to + sizeHint() returns. Button-like widgets set the size policy to specify that they may stretch horizontally, but are fixed vertically. The same applies to lineedit controls (such as TQLineEdit, TQSpinBox or an editable TQComboBox) and other @@ -8466,9 +8466,9 @@ void TQWidget::setLayout( TQLayout *l ) respective direction only. Widgets that can provide scrollbars (usually subclasses of TQScrollView) tend to specify that they can use additional space, and that they can make do with less than - tqsizeHint(). + sizeHint(). - \sa tqsizeHint() TQLayout TQSizePolicy updateGeometry() + \sa sizeHint() TQLayout TQSizePolicy updateGeometry() */ TQSizePolicy TQWidget::sizePolicy() const { @@ -8580,7 +8580,7 @@ TQWidget *TQWidget::tqchildAt( const TQPoint & p, bool includeThis ) const Notifies the tqlayout system that this widget has changed and may need to change tqgeometry. - Call this function if the tqsizeHint() or sizePolicy() have changed. + Call this function if the sizeHint() or sizePolicy() have changed. For explicitly hidden widgets, updateGeometry() is a no-op. The tqlayout system will be notified as soon as the widget is shown. diff --git a/tqtinterface/qt4/src/kernel/tqwidget.h b/tqtinterface/qt4/src/kernel/tqwidget.h index c027464..4f0e36b 100644 --- a/tqtinterface/qt4/src/kernel/tqwidget.h +++ b/tqtinterface/qt4/src/kernel/tqwidget.h @@ -51,7 +51,7 @@ #include "tqfont.h" #include "tqfontmetrics.h" #include "tqfontinfo.h" -#include "tqsizepolicy.h" +#include "sizepolicy.h" #include "tqbitmap.h" #endif // TQT_H @@ -244,7 +244,7 @@ public: TQObject *child( const char *objName, const char *inheritsClass = 0, bool recursiveSearch = TRUE ); const TQRect tqgeometry() const; TQLayout *tqlayout() const; - virtual TQSize tqsizeHint() const; + virtual TQSize sizeHint() const; virtual TQSize tqminimumSizeHint() const; virtual QSize sizeHint() const; virtual QSize minimumSizeHint() const; @@ -286,7 +286,7 @@ public: void tqrepaint(int x, int y, int w, int h, bool); void tqrepaint(const QRect &r, bool); void tqrepaint(const QRegion &rgn, bool); - TQSizePolicy tqsizePolicy() const; + TQSizePolicy sizePolicy() const; TQPoint backgroundOffset() const; bool tqsignalsBlocked() const; TQObjectList *queryList( const char *inheritsClass = 0, const char *objName = 0, bool regexpMatch = TRUE, bool recursiveSearch = TRUE ) const; @@ -638,7 +638,7 @@ class TQ_EXPORT TQWidget : public TQObject, public TQPaintDevice Q_PROPERTY( bool minimized READ isMinimized ) Q_PROPERTY( bool maximized READ isMaximized ) Q_PROPERTY( bool fullScreen READ isFullScreen ) - Q_PROPERTY( TQSize tqsizeHint READ tqsizeHint ) + Q_PROPERTY( TQSize sizeHint READ sizeHint ) Q_PROPERTY( TQSize tqminimumSizeHint READ tqminimumSizeHint ) Q_PROPERTY( TQRect microFocusHint READ microFocusHint ) Q_PROPERTY( bool acceptDrops READ acceptDrops WRITE setAcceptDrops ) @@ -900,7 +900,7 @@ public: uint windowState() const; void setWindowState(uint windowState); - virtual TQSize tqsizeHint() const; + virtual TQSize sizeHint() const; virtual TQSize tqminimumSizeHint() const; virtual TQSizePolicy sizePolicy() const; virtual void tqsetSizePolicy( TQSizePolicy ); diff --git a/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp b/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp index 8412c94..bcb2120 100644 --- a/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp +++ b/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp @@ -344,7 +344,7 @@ update. For example: */ -//## possibly add tqsizeHint parameter +//## possibly add sizeHint parameter bool TQSqlCursorManager::tqfindBuffer( const TQSqlIndex& idx, int atHint ) { #ifdef TQT_DEBUG_DATAMANAGER diff --git a/tqtinterface/qt4/src/styles/tqcommonstyle.cpp b/tqtinterface/qt4/src/styles/tqcommonstyle.cpp index c69fea7..252a1ff 100644 --- a/tqtinterface/qt4/src/styles/tqcommonstyle.cpp +++ b/tqtinterface/qt4/src/styles/tqcommonstyle.cpp @@ -1187,7 +1187,7 @@ TQRect TQCommonStyle::subRect(SubRect r, const TQWidget *widget) const TQDialogButtons::Help }; for(unsigned int i = 0, cnt = 0; i < (sizeof(btns)/sizeof(btns[0])); i++) { if(dbtns->isButtonVisible(btns[i])) { - TQSize szH = dbtns->tqsizeHint(btns[i]); + TQSize szH = dbtns->sizeHint(btns[i]); int mwidth = TQMAX(bwidth, szH.width()), mheight = TQMAX(bheight, szH.height()); if(dbtns->orientation() == Qt::Horizontal) { start -= mwidth; @@ -2458,7 +2458,7 @@ int TQCommonStyle::tqpixelMetric(PixelMetric m, const TQWidget *widget) const /*! \reimp */ -TQSize TQCommonStyle::tqsizeFromContents(ContentsType contents, +TQSize TQCommonStyle::sizeFromContents(ContentsType contents, const TQWidget *widget, const TQSize &contentsSize, const TQStyleOption& opt ) const @@ -2467,7 +2467,7 @@ TQSize TQCommonStyle::tqsizeFromContents(ContentsType contents, #if defined(TQT_CHECK_STATE) if (! widget) { - qWarning("TQCommonStyle::tqsizeFromContents: widget parameter cannot be zero!"); + qWarning("TQCommonStyle::sizeFromContents: widget parameter cannot be zero!"); return sz; } #endif @@ -2492,7 +2492,7 @@ TQSize TQCommonStyle::tqsizeFromContents(ContentsType contents, TQDialogButtons::Help }; for(unsigned int i = 0, cnt = 0; i < (sizeof(btns)/sizeof(btns[0])); i++) { if(dbtns->isButtonVisible(btns[i])) { - TQSize szH = dbtns->tqsizeHint(btns[i]); + TQSize szH = dbtns->sizeHint(btns[i]); int mwidth = TQMAX(bwidth, szH.width()), mheight = TQMAX(bheight, szH.height()); if(dbtns->orientation() == Qt::Horizontal) h = TQMAX(h, mheight); @@ -2587,8 +2587,8 @@ TQSize TQCommonStyle::tqsizeFromContents(ContentsType contents, int w = sz.width(), h = sz.height(); if (mi->custom()) { - w = mi->custom()->tqsizeHint().width(); - h = mi->custom()->tqsizeHint().height(); + w = mi->custom()->sizeHint().width(); + h = mi->custom()->sizeHint().height(); if (! mi->custom()->fullSpan()) h += 8; } else if ( mi->widget() ) { diff --git a/tqtinterface/qt4/src/styles/tqcommonstyle.h b/tqtinterface/qt4/src/styles/tqcommonstyle.h index ef01d89..d9e7244 100644 --- a/tqtinterface/qt4/src/styles/tqcommonstyle.h +++ b/tqtinterface/qt4/src/styles/tqcommonstyle.h @@ -127,7 +127,7 @@ public: int tqpixelMetric( PixelMetric m, const TQWidget *widget = 0 ) const; - TQSize tqsizeFromContents( ContentsType s, + TQSize sizeFromContents( ContentsType s, const TQWidget *widget, const TQSize &contentsSize, const TQStyleOption& = TQStyleOption::Default ) const; diff --git a/tqtinterface/qt4/src/styles/tqcompactstyle.cpp b/tqtinterface/qt4/src/styles/tqcompactstyle.cpp index 44cd711..9d50011 100644 --- a/tqtinterface/qt4/src/styles/tqcompactstyle.cpp +++ b/tqtinterface/qt4/src/styles/tqcompactstyle.cpp @@ -129,7 +129,7 @@ static int popupMenuItemHeight( bool /*checkable*/, TQMenuItem* mi, const TQFont h = TQMAX( h, mi->iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal ).height() + 2*motifItemFrame ); } if ( mi->custom() ) - h = TQMAX( h, mi->custom()->tqsizeHint().height() + 2*motifItemVMargin + 2*motifItemFrame ) - 1; + h = TQMAX( h, mi->custom()->sizeHint().height() + 2*motifItemVMargin + 2*motifItemFrame ) - 1; return h; } diff --git a/tqtinterface/qt4/src/styles/tqmotifstyle.cpp b/tqtinterface/qt4/src/styles/tqmotifstyle.cpp index 257c0ad..62edca7 100644 --- a/tqtinterface/qt4/src/styles/tqmotifstyle.cpp +++ b/tqtinterface/qt4/src/styles/tqmotifstyle.cpp @@ -1730,7 +1730,7 @@ TQRect TQMotifStyle::querySubControlMetrics( TQ_ComplexControl control, /*!\reimp */ -TQSize TQMotifStyle::tqsizeFromContents( ContentsType contents, +TQSize TQMotifStyle::sizeFromContents( ContentsType contents, const TQWidget *widget, const TQSize &contentsSize, const TQStyleOption& opt ) const @@ -1742,7 +1742,7 @@ TQSize TQMotifStyle::tqsizeFromContents( ContentsType contents, { #ifndef TQT_NO_PUSHBUTTON const TQPushButton *button = (const TQPushButton *) widget; - sz = TQCommonStyle::tqsizeFromContents(contents, widget, contentsSize, opt); + sz = TQCommonStyle::sizeFromContents(contents, widget, contentsSize, opt); if ((button->isDefault() || button->autoDefault()) && sz.width() < 80 && ! button->pixmap()) sz.setWidth(80); @@ -1763,8 +1763,8 @@ TQSize TQMotifStyle::tqsizeFromContents( ContentsType contents, int w = sz.width(), h = sz.height(); if (mi->custom()) { - w = mi->custom()->tqsizeHint().width(); - h = mi->custom()->tqsizeHint().height(); + w = mi->custom()->sizeHint().width(); + h = mi->custom()->sizeHint().height(); if (! mi->custom()->fullSpan()) h += 2*motifItemVMargin + 2*motifItemFrame; } else if ( mi->widget() ) { @@ -1802,7 +1802,7 @@ TQSize TQMotifStyle::tqsizeFromContents( ContentsType contents, } default: - sz = TQCommonStyle::tqsizeFromContents( contents, widget, contentsSize, opt ); + sz = TQCommonStyle::sizeFromContents( contents, widget, contentsSize, opt ); break; } diff --git a/tqtinterface/qt4/src/styles/tqmotifstyle.h b/tqtinterface/qt4/src/styles/tqmotifstyle.h index f5d6a52..be7abf9 100644 --- a/tqtinterface/qt4/src/styles/tqmotifstyle.h +++ b/tqtinterface/qt4/src/styles/tqmotifstyle.h @@ -109,7 +109,7 @@ public: int tqpixelMetric( PixelMetric metric, const TQWidget *widget = 0 ) const; - TQSize tqsizeFromContents( ContentsType contents, + TQSize sizeFromContents( ContentsType contents, const TQWidget *widget, const TQSize &contentsSize, const TQStyleOption& = TQStyleOption::Default ) const; diff --git a/tqtinterface/qt4/src/styles/tqsgistyle.cpp b/tqtinterface/qt4/src/styles/tqsgistyle.cpp index 6b8a17b..24c7787 100644 --- a/tqtinterface/qt4/src/styles/tqsgistyle.cpp +++ b/tqtinterface/qt4/src/styles/tqsgistyle.cpp @@ -1365,7 +1365,7 @@ void TQSGIStyle::tqdrawComplexControl( TQ_ComplexControl control, /*!\reimp */ -TQSize TQSGIStyle::tqsizeFromContents( ContentsType contents, +TQSize TQSGIStyle::sizeFromContents( ContentsType contents, const TQWidget *widget, const TQSize &contentsSize, const TQStyleOption& opt ) const @@ -1380,7 +1380,7 @@ TQSize TQSGIStyle::tqsizeFromContents( ContentsType contents, break; TQMenuItem *mi = opt.menuItem(); - sz = TQMotifStyle::tqsizeFromContents( contents, widget, contentsSize, + sz = TQMotifStyle::sizeFromContents( contents, widget, contentsSize, opt ); // SGI checkmark items needs a bit more room const TQPopupMenu *popup = (TQPopupMenu *) widget; @@ -1397,7 +1397,7 @@ TQSize TQSGIStyle::tqsizeFromContents( ContentsType contents, break; default: - sz = TQMotifStyle::tqsizeFromContents( contents, widget, contentsSize, opt ); + sz = TQMotifStyle::sizeFromContents( contents, widget, contentsSize, opt ); break; } diff --git a/tqtinterface/qt4/src/styles/tqsgistyle.h b/tqtinterface/qt4/src/styles/tqsgistyle.h index 5ae9889..38e203a 100644 --- a/tqtinterface/qt4/src/styles/tqsgistyle.h +++ b/tqtinterface/qt4/src/styles/tqsgistyle.h @@ -103,7 +103,7 @@ public: int tqpixelMetric( PixelMetric metric, const TQWidget *widget = 0 ) const; - TQSize tqsizeFromContents( ContentsType contents, + TQSize sizeFromContents( ContentsType contents, const TQWidget *widget, const TQSize &contentsSize, const TQStyleOption& = TQStyleOption::Default ) const; diff --git a/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp b/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp index aa65a5b..c766c2d 100644 --- a/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp +++ b/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp @@ -1169,7 +1169,7 @@ int TQWindowsStyle::tqpixelMetric(PixelMetric metric, const TQWidget *widget) co /*! \reimp */ -TQSize TQWindowsStyle::tqsizeFromContents( ContentsType contents, +TQSize TQWindowsStyle::sizeFromContents( ContentsType contents, const TQWidget *widget, const TQSize &contentsSize, const TQStyleOption& opt ) const @@ -1181,7 +1181,7 @@ TQSize TQWindowsStyle::tqsizeFromContents( ContentsType contents, { #ifndef TQT_NO_PUSHBUTTON const TQPushButton *button = (const TQPushButton *) widget; - sz = TQCommonStyle::tqsizeFromContents(contents, widget, contentsSize, opt); + sz = TQCommonStyle::sizeFromContents(contents, widget, contentsSize, opt); int w = sz.width(), h = sz.height(); int defwidth = 0; @@ -1211,8 +1211,8 @@ TQSize TQWindowsStyle::tqsizeFromContents( ContentsType contents, int w = sz.width(), h = sz.height(); if (mi->custom()) { - w = mi->custom()->tqsizeHint().width(); - h = mi->custom()->tqsizeHint().height(); + w = mi->custom()->sizeHint().width(); + h = mi->custom()->sizeHint().height(); if (! mi->custom()->fullSpan()) h += 2*windowsItemVMargin + 2*windowsItemFrame; } else if ( mi->widget() ) { @@ -1261,7 +1261,7 @@ TQSize TQWindowsStyle::tqsizeFromContents( ContentsType contents, } default: - sz = TQCommonStyle::tqsizeFromContents(contents, widget, sz, opt); + sz = TQCommonStyle::sizeFromContents(contents, widget, sz, opt); break; } diff --git a/tqtinterface/qt4/src/styles/tqwindowsstyle.h b/tqtinterface/qt4/src/styles/tqwindowsstyle.h index a5a6fe9..e1aed6c 100644 --- a/tqtinterface/qt4/src/styles/tqwindowsstyle.h +++ b/tqtinterface/qt4/src/styles/tqwindowsstyle.h @@ -104,7 +104,7 @@ public: int tqpixelMetric( PixelMetric metric, const TQWidget *widget = 0 ) const; - TQSize tqsizeFromContents( ContentsType contents, + TQSize sizeFromContents( ContentsType contents, const TQWidget *widget, const TQSize &contentsSize, const TQStyleOption& = TQStyleOption::Default ) const; diff --git a/tqtinterface/qt4/src/table/tqtable.cpp b/tqtinterface/qt4/src/table/tqtable.cpp index d87914f..6ef5b4f 100644 --- a/tqtinterface/qt4/src/table/tqtable.cpp +++ b/tqtinterface/qt4/src/table/tqtable.cpp @@ -786,7 +786,7 @@ TQTable::viewport() as tqparent. If you reimplement this function you'll almost certainly need to reimplement setContentFromEditor(), and may need to reimplement -tqsizeHint(). +sizeHint(). \quotefile table/statistics/statistics.cpp \skipto createEditor @@ -960,11 +960,11 @@ TQString TQTableItem::key() const function. */ -TQSize TQTableItem::tqsizeHint() const +TQSize TQTableItem::sizeHint() const { TQSize strutSize = TQApplication::globalStrut(); if ( edType == Always && table()->cellWidget( rw, cl ) ) - return table()->cellWidget( rw, cl )->tqsizeHint().expandedTo( strutSize ); + return table()->cellWidget( rw, cl )->sizeHint().expandedTo( strutSize ); TQSize s; int x = 0; @@ -1461,11 +1461,11 @@ int TQComboTableItem::rtti() const /*! \reimp */ -TQSize TQComboTableItem::tqsizeHint() const +TQSize TQComboTableItem::sizeHint() const { fakeCombo->insertItem( currentText() ); fakeCombo->setCurrentItem( fakeCombo->count() - 1 ); - TQSize sh = fakeCombo->tqsizeHint(); + TQSize sh = fakeCombo->sizeHint(); fakeCombo->removeItem( fakeCombo->count() - 1 ); return sh.expandedTo( TQApplication::globalStrut() ); } @@ -1647,12 +1647,12 @@ int TQCheckTableItem::rtti() const /*! \reimp */ -TQSize TQCheckTableItem::tqsizeHint() const +TQSize TQCheckTableItem::sizeHint() const { TQSize sz = TQSize( table()->tqstyle().tqpixelMetric( TQStyle::PM_IndicatorWidth ), table()->tqstyle().tqpixelMetric( TQStyle::PM_IndicatorHeight ) ); sz.setWidth( sz.width() + 6 ); - TQSize sh( TQTableItem::tqsizeHint() ); + TQSize sh( TQTableItem::sizeHint() ); return TQSize( sh.width() + sz.width(), TQMAX( sh.height(), sz.height() ) ). expandedTo( TQApplication::globalStrut() ); } @@ -4329,7 +4329,7 @@ void TQTable::focusOutEvent( TQFocusEvent* tqfe ) /*! \reimp */ -TQSize TQTable::tqsizeHint() const +TQSize TQTable::sizeHint() const { if ( cachedSizeHint().isValid() ) return cachedSizeHint(); @@ -4342,7 +4342,7 @@ TQSize TQTable::tqsizeHint() const sh = TQSize( tableSize().width() + VERTICALMARGIN + 5, tableSize().height() + topMargin() + 5 ); } else { - sh = TQScrollView::tqsizeHint(); + sh = TQScrollView::sizeHint(); if ( !topHeader->isHidden() ) sh.setHeight( sh.height() + topHeader->height() ); if ( !leftHeader->isHidden() ) @@ -4927,7 +4927,7 @@ void TQTable::setNumRows( int r ) } } - fontChange(font()); // tqinvalidate the tqsizeHintCache + fontChange(font()); // tqinvalidate the sizeHintCache TQPtrVector<TQTableItem> tmp; TQPtrVector<TableWidget> tmp2; @@ -4976,7 +4976,7 @@ void TQTable::setNumCols( int c ) } } - fontChange(font()); // tqinvalidate the tqsizeHintCache + fontChange(font()); // tqinvalidate the sizeHintCache TQPtrVector<TQTableItem> tmp; TQPtrVector<TableWidget> tmp2; @@ -5824,12 +5824,12 @@ void TQTable::adjustColumn( int col ) if ( !itm ) { TQWidget *widget = cellWidget( i, col ); if ( widget ) - w = TQMAX( w, widget->tqsizeHint().width() ); + w = TQMAX( w, widget->sizeHint().width() ); } else { if ( itm->colSpan() > 1 ) - w = TQMAX( w, itm->tqsizeHint().width() / itm->colSpan() ); + w = TQMAX( w, itm->sizeHint().width() / itm->colSpan() ); else - w = TQMAX( w, itm->tqsizeHint().width() ); + w = TQMAX( w, itm->sizeHint().width() ); } } w = TQMAX( w, TQApplication::globalStrut().width() ); @@ -5854,12 +5854,12 @@ void TQTable::adjustRow( int row ) if ( !itm ) { TQWidget *widget = cellWidget( row, i ); if ( widget ) - h = TQMAX( h, widget->tqsizeHint().height() ); + h = TQMAX( h, widget->sizeHint().height() ); } else { if ( itm->rowSpan() > 1 ) - h = TQMAX( h, itm->tqsizeHint().height() / itm->rowSpan() ); + h = TQMAX( h, itm->sizeHint().height() / itm->rowSpan() ); else - h = TQMAX( h, itm->tqsizeHint().height() ); + h = TQMAX( h, itm->sizeHint().height() ); } } h = TQMAX( h, TQApplication::globalStrut().height() ); @@ -6905,11 +6905,11 @@ void TQTableHeader::sectionLabelChanged( int section ) // this does not really belong here if ( orientation() == Qt::Horizontal ) { - int h = tqsizeHint().height(); + int h = sizeHint().height(); if ( h != height() && mayOverwriteMargin(table->topMargin(), h) ) table->setTopMargin( h ); } else { - int w = tqsizeHint().width(); + int w = sizeHint().width(); if ( w != width() && mayOverwriteMargin( ( TQApplication::reverseLayout() ? table->rightMargin() : table->leftMargin() ), w) ) table->setLeftMargin( w ); } diff --git a/tqtinterface/qt4/src/table/tqtable.h b/tqtinterface/qt4/src/table/tqtable.h index d978ad2..ec81d44 100644 --- a/tqtinterface/qt4/src/table/tqtable.h +++ b/tqtinterface/qt4/src/table/tqtable.h @@ -143,7 +143,7 @@ public: bool isReplaceable() const; virtual TQString key() const; - virtual TQSize tqsizeHint() const; + virtual TQSize sizeHint() const; virtual void setSpan( int rs, int cs ); int rowSpan() const; @@ -208,7 +208,7 @@ public: int rtti() const; static int RTTI; - TQSize tqsizeHint() const; + TQSize sizeHint() const; private: TQComboBox *cb; @@ -236,7 +236,7 @@ public: int rtti() const; static int RTTI; - TQSize tqsizeHint() const; + TQSize sizeHint() const; private: TQCheckBox *cb; @@ -341,7 +341,7 @@ public: virtual void paintCell( TQPainter *p, int row, int col, const TQRect &cr, bool selected, const TQColorGroup &cg ); virtual void paintFocus( TQPainter *p, const TQRect &r ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; bool isReadOnly() const; bool isRowReadOnly( int row ) const; diff --git a/tqtinterface/qt4/src/widgets/tqbutton.cpp b/tqtinterface/qt4/src/widgets/tqbutton.cpp index c667fec..f0f06bc 100644 --- a/tqtinterface/qt4/src/widgets/tqbutton.cpp +++ b/tqtinterface/qt4/src/widgets/tqbutton.cpp @@ -213,7 +213,7 @@ TQTimer *TQButton::timer() To subclass TQButton, you must reimplement at least drawButton() (to draw the button's outline) and drawButtonLabel() (to draw its text or pixmap). It is generally advisable to reimplement - tqsizeHint() as well, and sometimes hitButton() (to determine + sizeHint() as well, and sometimes hitButton() (to determine whether a button press is within the button). To reduce flickering, TQButton::paintEvent() sets up a pixmap that diff --git a/tqtinterface/qt4/src/widgets/tqcheckbox.cpp b/tqtinterface/qt4/src/widgets/tqcheckbox.cpp index 37e8eac..0b139bf 100644 --- a/tqtinterface/qt4/src/widgets/tqcheckbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqcheckbox.cpp @@ -170,16 +170,16 @@ bool TQCheckBox::isTristate() const /*!\reimp */ -TQSize TQCheckBox::tqsizeHint() const +TQSize TQCheckBox::sizeHint() const { - // NB: TQRadioButton::tqsizeHint() is similar + // NB: TQRadioButton::sizeHint() is similar constPolish(); TQPainter p(this); TQSize sz = tqstyle().tqitemRect(&p, TQRect(0, 0, 1, 1), TQt::ShowPrefix, FALSE, pixmap(), text()).size(); - return (tqstyle().tqsizeFromContents(TQStyle::CT_CheckBox, this, sz). + return (tqstyle().sizeFromContents(TQStyle::CT_CheckBox, this, sz). expandedTo(TQApplication::globalStrut())); } @@ -316,7 +316,7 @@ void TQCheckBox::resizeEvent( TQResizeEvent *e ) TQPainter p(this); TQSize isz = tqstyle().tqitemRect(&p, TQRect(0, 0, 1, 1), TQt::ShowPrefix, FALSE, pixmap(), text()).size(); - TQSize wsz = (tqstyle().tqsizeFromContents(TQStyle::CT_CheckBox, this, isz). + TQSize wsz = (tqstyle().sizeFromContents(TQStyle::CT_CheckBox, this, isz). expandedTo(TQApplication::globalStrut())); update(wsz.width(), isz.width(), 0, wsz.height()); diff --git a/tqtinterface/qt4/src/widgets/tqcheckbox.h b/tqtinterface/qt4/src/widgets/tqcheckbox.h index 3f0e21b..0e06a1a 100644 --- a/tqtinterface/qt4/src/widgets/tqcheckbox.h +++ b/tqtinterface/qt4/src/widgets/tqcheckbox.h @@ -66,7 +66,7 @@ public: void setTristate(bool y=TRUE); bool isTristate() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; public Q_SLOTS: void setChecked( bool check ); diff --git a/tqtinterface/qt4/src/widgets/tqcombobox.cpp b/tqtinterface/qt4/src/widgets/tqcombobox.cpp index d152da2..cf28437 100644 --- a/tqtinterface/qt4/src/widgets/tqcombobox.cpp +++ b/tqtinterface/qt4/src/widgets/tqcombobox.cpp @@ -367,13 +367,13 @@ public: TQComboBoxPopupItem(TQListBoxItem *i) : TQCustomMenuItem(), li(i), sc(0, 0) { } virtual bool fullSpan() const { return TRUE; } virtual void paint( TQPainter*, const TQColorGroup&, bool, bool, int, int, int, int); - virtual TQSize tqsizeHint() { if (sc.isNull()) sc = TQSize(li->width(li->listBox()), TQMAX(25, li->height(li->listBox()))); return sc; } + virtual TQSize sizeHint() { if (sc.isNull()) sc = TQSize(li->width(li->listBox()), TQMAX(25, li->height(li->listBox()))); return sc; } }; void TQComboBoxPopupItem::paint( TQPainter* p, const TQColorGroup&, bool, bool, int x, int y, int, int) { p->save(); - p->translate(x, y + ((tqsizeHint().height() / 2) - (li->height(li->listBox()) / 2))); + p->translate(x, y + ((sizeHint().height() / 2) - (li->height(li->listBox()) / 2))); li->paint(p); p->restore(); } @@ -419,7 +419,7 @@ public: TQLineEdit * ed; // /bin/ed rules! TQTimer *completionTimer; - TQSize tqsizeHint; + TQSize sizeHint; private: bool usingLBox; @@ -1077,10 +1077,10 @@ void TQComboBox::setAutoResize( bool enable ) the contents change dynamically. To tqinvalidate the cached value call setFont(). */ -TQSize TQComboBox::tqsizeHint() const +TQSize TQComboBox::sizeHint() const { - if ( isVisible() && d->tqsizeHint.isValid() ) - return d->tqsizeHint; + if ( isVisible() && d->sizeHint.isValid() ) + return d->sizeHint; constPolish(); int i, w; @@ -1090,7 +1090,7 @@ TQSize TQComboBox::tqsizeHint() const int maxH = TQMAX( fm.lineSpacing(), 14 ) + 2; if ( !d->usingListBox() ) { - w = d->popup()->tqsizeHint().width() - 2* d->popup()->frameWidth(); + w = d->popup()->sizeHint().width() - 2* d->popup()->frameWidth(); if ( w > maxW ) maxW = w; } else { @@ -1101,11 +1101,11 @@ TQSize TQComboBox::tqsizeHint() const } } - d->tqsizeHint = (tqstyle().tqsizeFromContents(TQStyle::CT_ComboBox, this, + d->sizeHint = (tqstyle().sizeFromContents(TQStyle::CT_ComboBox, this, TQSize(maxW, maxH)). expandedTo(TQApplication::globalStrut())); - return d->tqsizeHint; + return d->sizeHint; } @@ -1185,7 +1185,7 @@ void TQComboBox::setPalette( const TQPalette &palette ) void TQComboBox::setFont( const TQFont &font ) { - d->tqsizeHint = TQSize(); // tqinvalidate size hint + d->sizeHint = TQSize(); // tqinvalidate size hint TQWidget::setFont( font ); if ( d->usingListBox() ) d->listBox()->setFont( font ); @@ -1519,7 +1519,7 @@ static int listHeight( TQListBox *l, int sl ) if ( l->count() > 0 ) return TQMIN( l->count(), (uint)sl) * l->item( 0 )->height(l); else - return l->tqsizeHint().height(); + return l->sizeHint().height(); } @@ -1569,7 +1569,7 @@ void TQComboBox::popup() lb->triggerUpdate( TRUE ); lb->installEventFilter( this ); d->mouseWasInsidePopup = FALSE; - int w = lb->variableWidth() ? lb->tqsizeHint().width() : width(); + int w = lb->variableWidth() ? lb->sizeHint().width() : width(); int h = listHeight( lb, d->sizeLimit ) + 2; TQRect screen = TQApplication::desktop()->availableGeometry( this ); @@ -2204,7 +2204,7 @@ bool TQComboBox::autoCompletion() const */ void TQComboBox::styleChange( TQStyle& s ) { - d->tqsizeHint = TQSize(); // tqinvalidate size hint... + d->sizeHint = TQSize(); // tqinvalidate size hint... if ( d->ed ) d->updateLinedGeometry(); TQWidget::styleChange( s ); diff --git a/tqtinterface/qt4/src/widgets/tqcombobox.h b/tqtinterface/qt4/src/widgets/tqcombobox.h index bfee192..b563240 100644 --- a/tqtinterface/qt4/src/widgets/tqcombobox.h +++ b/tqtinterface/qt4/src/widgets/tqcombobox.h @@ -106,7 +106,7 @@ public: bool autoResize() const; virtual void setAutoResize( bool ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; void setPalette( const TQPalette & ); void setFont( const TQFont & ); diff --git a/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp b/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp index 4aaea53..acbc092 100644 --- a/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp +++ b/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp @@ -1093,7 +1093,7 @@ void TQDateEdit::resizeEvent( TQResizeEvent * ) /*! \reimp */ -TQSize TQDateEdit::tqsizeHint() const +TQSize TQDateEdit::sizeHint() const { constPolish(); TQFontMetrics fm( font() ); @@ -1109,7 +1109,7 @@ TQSize TQDateEdit::tqsizeHint() const */ TQSize TQDateEdit::tqminimumSizeHint() const { - return tqsizeHint(); + return sizeHint(); } @@ -2550,7 +2550,7 @@ void TQTimeEdit::resizeEvent( TQResizeEvent * ) /*! \reimp */ -TQSize TQTimeEdit::tqsizeHint() const +TQSize TQTimeEdit::sizeHint() const { constPolish(); TQFontMetrics fm( font() ); @@ -2572,7 +2572,7 @@ TQSize TQTimeEdit::tqsizeHint() const */ TQSize TQTimeEdit::tqminimumSizeHint() const { - return tqsizeHint(); + return sizeHint(); } /*! @@ -2694,8 +2694,8 @@ TQDateTimeEdit::~TQDateTimeEdit() void TQDateTimeEdit::resizeEvent( TQResizeEvent * ) { - int dw = de->tqsizeHint().width(); - int tw = te->tqsizeHint().width(); + int dw = de->sizeHint().width(); + int tw = te->sizeHint().width(); int w = width(); int h = height(); int extra = w - ( dw + tw ); @@ -2742,11 +2742,11 @@ void TQDateTimeEdit::init() /*! \reimp */ -TQSize TQDateTimeEdit::tqsizeHint() const +TQSize TQDateTimeEdit::sizeHint() const { constPolish(); - TQSize dsh = de->tqsizeHint(); - TQSize tsh = te->tqsizeHint(); + TQSize dsh = de->sizeHint(); + TQSize tsh = te->sizeHint(); return TQSize( dsh.width() + tsh.width(), TQMAX( dsh.height(), tsh.height() ) ); } diff --git a/tqtinterface/qt4/src/widgets/tqdatetimeedit.h b/tqtinterface/qt4/src/widgets/tqdatetimeedit.h index ab59358..b4a6e93 100644 --- a/tqtinterface/qt4/src/widgets/tqdatetimeedit.h +++ b/tqtinterface/qt4/src/widgets/tqdatetimeedit.h @@ -93,7 +93,7 @@ public: enum Order { DMY, MDY, YMD, YDM }; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; public Q_SLOTS: @@ -180,7 +180,7 @@ public: TQTimeEdit( const QTime& time, QWidget* tqparent=0, const char* name=0 ); ~TQTimeEdit(); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; public Q_SLOTS: @@ -255,7 +255,7 @@ public: const char* name=0 ); ~TQDateTimeEdit(); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; public Q_SLOTS: diff --git a/tqtinterface/qt4/src/widgets/tqdial.cpp b/tqtinterface/qt4/src/widgets/tqdial.cpp index 5b9601b..efde0a8 100644 --- a/tqtinterface/qt4/src/widgets/tqdial.cpp +++ b/tqtinterface/qt4/src/widgets/tqdial.cpp @@ -773,7 +773,7 @@ TQSize TQDial::tqminimumSizeHint() const \reimp */ -TQSize TQDial::tqsizeHint() const +TQSize TQDial::sizeHint() const { return TQSize( 100, 100 ).expandedTo( TQApplication::globalStrut() ); } diff --git a/tqtinterface/qt4/src/widgets/tqdial.h b/tqtinterface/qt4/src/widgets/tqdial.h index d7cfcad..3b36e6d 100644 --- a/tqtinterface/qt4/src/widgets/tqdial.h +++ b/tqtinterface/qt4/src/widgets/tqdial.h @@ -83,7 +83,7 @@ public: bool notchesVisible() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; int minValue() const; diff --git a/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp b/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp index cabc7e8..f70e3bd 100644 --- a/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp +++ b/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp @@ -422,18 +422,18 @@ TQDialogButtons::layoutButtons() } TQSize -TQDialogButtons::tqsizeHint() const +TQDialogButtons::sizeHint() const { constPolish(); TQSize s; if(d->custom) - s = d->custom->tqsizeHint(); - return (tqstyle().tqsizeFromContents(TQStyle::CT_DialogButtons, this, s. + s = d->custom->sizeHint(); + return (tqstyle().sizeFromContents(TQStyle::CT_DialogButtons, this, s. expandedTo(TQApplication::globalStrut()))); } TQSize -TQDialogButtons::tqsizeHint(TQDialogButtons::Button button) const +TQDialogButtons::sizeHint(TQDialogButtons::Button button) const { TQWidget *w = NULL; if(d->visible & button) { @@ -445,12 +445,12 @@ TQDialogButtons::tqsizeHint(TQDialogButtons::Button button) const w = d->buttons[button]; } } - return w->tqsizeHint(); + return w->sizeHint(); } TQSize TQDialogButtons::tqminimumSizeHint() const { - return tqsizeHint(); + return sizeHint(); } #endif diff --git a/tqtinterface/qt4/src/widgets/tqdialogbuttons_p.h b/tqtinterface/qt4/src/widgets/tqdialogbuttons_p.h index 4262ec1..eed5bbc 100644 --- a/tqtinterface/qt4/src/widgets/tqdialogbuttons_p.h +++ b/tqtinterface/qt4/src/widgets/tqdialogbuttons_p.h @@ -85,9 +85,9 @@ public: void setOrientation(Qt::Orientation); Qt::Orientation orientation() const; - virtual TQSize tqsizeHint(Button) const; + virtual TQSize sizeHint(Button) const; TQSize tqminimumSizeHint() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; protected: void layoutButtons(); diff --git a/tqtinterface/qt4/src/widgets/tqdockarea.cpp b/tqtinterface/qt4/src/widgets/tqdockarea.cpp index 5aed489..f9cf2fc 100644 --- a/tqtinterface/qt4/src/widgets/tqdockarea.cpp +++ b/tqtinterface/qt4/src/widgets/tqdockarea.cpp @@ -120,7 +120,7 @@ TQLayoutIterator TQDockAreaLayout::iterator() return 0; } -TQSize TQDockAreaLayout::tqsizeHint() const +TQSize TQDockAreaLayout::sizeHint() const { if ( !dockWindows || !dockWindows->first() ) return TQSize( 0, 0 ); @@ -215,9 +215,9 @@ static int space_left( const TQRect &r, int pos, Qt::Orientation o ) static int dock_extent( TQDockWindow *w, Qt::Orientation o, int maxsize ) { if ( o == Qt::Horizontal ) - return TQMIN( maxsize, TQMAX( w->tqsizeHint().width(), w->fixedExtent().width() ) ); + return TQMIN( maxsize, TQMAX( w->sizeHint().width(), w->fixedExtent().width() ) ); else - return TQMIN( maxsize, TQMAX( w->tqsizeHint().height(), w->fixedExtent().height() ) ); + return TQMIN( maxsize, TQMAX( w->sizeHint().height(), w->fixedExtent().height() ) ); } static int dock_strut( TQDockWindow *w, Qt::Orientation o ) @@ -226,12 +226,12 @@ static int dock_strut( TQDockWindow *w, Qt::Orientation o ) int wid; if ( ( wid = w->fixedExtent().width() ) != -1 ) return TQMAX( wid, TQMAX( w->tqminimumSize().width(), w->tqminimumSizeHint().width() ) ); - return TQMAX( w->tqsizeHint().width(), TQMAX( w->tqminimumSize().width(), w->tqminimumSizeHint().width() ) ); + return TQMAX( w->sizeHint().width(), TQMAX( w->tqminimumSize().width(), w->tqminimumSizeHint().width() ) ); } else { int hei; if ( ( hei = w->fixedExtent().height() ) != -1 ) return TQMAX( hei, TQMAX( w->tqminimumSizeHint().height(), w->tqminimumSize().height() ) ); - return TQMAX( w->tqsizeHint().height(), TQMAX( w->tqminimumSizeHint().height(), w->tqminimumSize().height() ) ); + return TQMAX( w->sizeHint().height(), TQMAX( w->tqminimumSizeHint().height(), w->tqminimumSize().height() ) ); } } @@ -261,14 +261,14 @@ static void shrink_extend( TQDockWindow *dw, int &dockExtend, int /*spaceLeft*/, if ( !tb ) mw = dw->minimumWidth(); else - mw = dw->tqsizeHint().width(); + mw = dw->sizeHint().width(); dockExtend = mw; } else { int mh = 0; if ( !tb ) mh = dw->minimumHeight(); else - mh = dw->tqsizeHint().height(); + mh = dw->sizeHint().height(); dockExtend = mh; } } @@ -886,9 +886,9 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, const TQPoint &p, const TQRect if ( mse != -10 && w->isResizeEnabled() ) { if ( orientation() != Qt::Horizontal ) - w->setFixedExtentWidth( TQMIN( TQMAX( w->minimumWidth(), mse ), w->tqsizeHint().width() ) ); + w->setFixedExtentWidth( TQMIN( TQMAX( w->minimumWidth(), mse ), w->sizeHint().width() ) ); else - w->setFixedExtentHeight( TQMIN( TQMAX( w->minimumHeight(), mse ), w->tqsizeHint().height() ) ); + w->setFixedExtentHeight( TQMIN( TQMAX( w->minimumHeight(), mse ), w->sizeHint().height() ) ); } updateLayout(); @@ -1171,13 +1171,13 @@ int TQDockArea::maxSpace( int hint, TQDockWindow *dw ) if ( !tb ) min = TQMAX( w->tqminimumSize().width(), w->tqminimumSizeHint().width() ); else - min = w->tqsizeHint().width(); + min = w->sizeHint().width(); } else { w->setFixedExtentHeight( -1 ); if ( !tb ) min = TQMAX( w->tqminimumSize().height(), w->tqminimumSizeHint().height() ); else - min = w->tqsizeHint().height(); + min = w->sizeHint().height(); } int diff = hint - ( orientation() == Qt::Horizontal ? dw->width() : dw->height() ); diff --git a/tqtinterface/qt4/src/widgets/tqdockarea.h b/tqtinterface/qt4/src/widgets/tqdockarea.h index 34c2a50..08f700a 100644 --- a/tqtinterface/qt4/src/widgets/tqdockarea.h +++ b/tqtinterface/qt4/src/widgets/tqdockarea.h @@ -75,7 +75,7 @@ public: bool hasHeightForWidth() const; int heightForWidth( int ) const; int widthForHeight( int ) const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSize() const; TQLayoutIterator iterator(); TQ_SPExpandData expandingDirections() const { return (Qt::Orientations)TQSizePolicy::NoDirection; } // [FIXME] Is this redefinition cast to Qt::Orientations correct? diff --git a/tqtinterface/qt4/src/widgets/tqdockwindow.cpp b/tqtinterface/qt4/src/widgets/tqdockwindow.cpp index e6e6f55..6809828 100644 --- a/tqtinterface/qt4/src/widgets/tqdockwindow.cpp +++ b/tqtinterface/qt4/src/widgets/tqdockwindow.cpp @@ -80,7 +80,7 @@ public: void setOrientation( Orientation o ); Orientation orientation() const { return orient; } - TQSize tqsizeHint() const; + TQSize sizeHint() const; protected: void paintEvent( TQPaintEvent * ); @@ -109,10 +109,10 @@ TQDockWindowResizeHandle::TQDockWindowResizeHandle( Orientation o, TQWidget *tqp setOrientation( o ); } -TQSize TQDockWindowResizeHandle::tqsizeHint() const +TQSize TQDockWindowResizeHandle::sizeHint() const { int sw = 2 * tqstyle().tqpixelMetric(TQStyle::PM_SplitterWidth, this) / 3; - return (tqstyle().tqsizeFromContents(TQStyle::CT_DockWindow, this, TQSize(sw, sw)). + return (tqstyle().sizeFromContents(TQStyle::CT_DockWindow, this, TQSize(sw, sw)). expandedTo(TQApplication::globalStrut())); } @@ -320,7 +320,7 @@ public: TQSize tqminimumSizeHint() const; TQSize tqminimumSize() const { return tqminimumSizeHint(); } - TQSize tqsizeHint() const { return tqminimumSize(); } + TQSize sizeHint() const { return tqminimumSize(); } TQSizePolicy sizePolicy() const; void setOpaqueMoving( bool b ) { opaque = b; } @@ -1148,7 +1148,7 @@ void TQDockWindow::swapRect( TQRect &r, Orientation o, const TQPoint &offset, TQ TQBoxLayout *bl = boxLayout()->createTmpCopy(); bl->setDirection( o == Qt::Horizontal ? TQBoxLayout::LeftToRight : TQBoxLayout::TopToBottom ); bl->activate(); - r.setSize( bl->tqsizeHint() ); + r.setSize( bl->sizeHint() ); bl->data = 0; delete bl; bool reverse = TQApplication::reverseLayout(); @@ -1808,9 +1808,9 @@ TQBoxLayout *TQDockWindow::boxLayout() /*! \reimp */ -TQSize TQDockWindow::tqsizeHint() const +TQSize TQDockWindow::sizeHint() const { - TQSize sh( TQFrame::tqsizeHint() ); + TQSize sh( TQFrame::sizeHint() ); if ( place() == InDock ) sh = sh.expandedTo( fixedExtent() ); sh = sh.expandedTo( TQSize( 16, 16 ) ); diff --git a/tqtinterface/qt4/src/widgets/tqdockwindow.h b/tqtinterface/qt4/src/widgets/tqdockwindow.h index 6906fd9..242d124 100644 --- a/tqtinterface/qt4/src/widgets/tqdockwindow.h +++ b/tqtinterface/qt4/src/widgets/tqdockwindow.h @@ -133,7 +133,7 @@ public: Orientation orientation() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSize() const; TQSize tqminimumSizeHint() const; diff --git a/tqtinterface/qt4/src/widgets/tqeffects.cpp b/tqtinterface/qt4/src/widgets/tqeffects.cpp index 0ac6a24..cb8527f 100644 --- a/tqtinterface/qt4/src/widgets/tqeffects.cpp +++ b/tqtinterface/qt4/src/widgets/tqeffects.cpp @@ -395,8 +395,8 @@ TQRollEffect::TQRollEffect( TQWidget* w, WFlags f, DirFlags orient ) totalWidth = widget->width(); totalHeight = widget->height(); } else { - totalWidth = widget->tqsizeHint().width(); - totalHeight = widget->tqsizeHint().height(); + totalWidth = widget->sizeHint().width(); + totalHeight = widget->sizeHint().height(); } currentHeight = totalHeight; diff --git a/tqtinterface/qt4/src/widgets/tqframe.cpp b/tqtinterface/qt4/src/widgets/tqframe.cpp index f49b30c..4bce9b1 100644 --- a/tqtinterface/qt4/src/widgets/tqframe.cpp +++ b/tqtinterface/qt4/src/widgets/tqframe.cpp @@ -476,18 +476,18 @@ TQRect TQFrame::contentsRect() const /*!\reimp */ -TQSize TQFrame::tqsizeHint() const +TQSize TQFrame::sizeHint() const { // Returns a size hint for the frame - for HLine and VLine // tqshapes, this is stretchable one way and 3 pixels wide the - // other. For other tqshapes, TQWidget::tqsizeHint() is used. + // other. For other tqshapes, TQWidget::sizeHint() is used. switch (fstyle & MShape) { case HLine: return TQSize(-1,3); case VLine: return TQSize(3,-1); default: - return TQWidget::tqsizeHint(); + return TQWidget::sizeHint(); } } diff --git a/tqtinterface/qt4/src/widgets/tqframe.h b/tqtinterface/qt4/src/widgets/tqframe.h index 8d289d2..bc68c24 100644 --- a/tqtinterface/qt4/src/widgets/tqframe.h +++ b/tqtinterface/qt4/src/widgets/tqframe.h @@ -74,7 +74,7 @@ public: bool lineShapesOk() const { return TRUE; } #endif - virtual TQSize tqsizeHint() const; + virtual TQSize sizeHint() const; enum Shape { NoFrame = 0, // no frame Box = 0x0001, // rectangular box diff --git a/tqtinterface/qt4/src/widgets/tqgrid.cpp b/tqtinterface/qt4/src/widgets/tqgrid.cpp index 06c6a88..68bbc6c 100644 --- a/tqtinterface/qt4/src/widgets/tqgrid.cpp +++ b/tqtinterface/qt4/src/widgets/tqgrid.cpp @@ -52,7 +52,7 @@ The number of rows \e or columns is defined in the constructor. All the grid's tqchildren will be placed and sized in accordance - with their tqsizeHint() and sizePolicy(). + with their sizeHint() and sizePolicy(). Use setMargin() to add space around the grid itself, and setSpacing() to add space between the widgets. @@ -128,10 +128,10 @@ void TQGrid::frameChanged() \reimp */ -TQSize TQGrid::tqsizeHint() const +TQSize TQGrid::sizeHint() const { TQWidget *mThis = (TQWidget*)this; TQApplication::sendPostedEvents( mThis, TQEvent::ChildInserted ); - return TQFrame::tqsizeHint(); + return TQFrame::sizeHint(); } #endif diff --git a/tqtinterface/qt4/src/widgets/tqgrid.h b/tqtinterface/qt4/src/widgets/tqgrid.h index 98ee826..8489136 100644 --- a/tqtinterface/qt4/src/widgets/tqgrid.h +++ b/tqtinterface/qt4/src/widgets/tqgrid.h @@ -55,7 +55,7 @@ public: WFlags f = 0 ); void setSpacing( int ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; #ifndef TQT_NO_COMPAT typedef Qt::Orientation Direction; diff --git a/tqtinterface/qt4/src/widgets/tqgroupbox.cpp b/tqtinterface/qt4/src/widgets/tqgroupbox.cpp index f9c341e..fd07192 100644 --- a/tqtinterface/qt4/src/widgets/tqgroupbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqgroupbox.cpp @@ -213,8 +213,8 @@ void TQGroupBox::setTextSpacer() int fh = fm.height(); if ( isCheckable() ) { #ifndef TQT_NO_CHECKBOX - fh = d->checkbox->tqsizeHint().height() + 2; - w = d->checkbox->tqsizeHint().width() + 2*fm.width( "xx" ); + fh = d->checkbox->sizeHint().height() + 2; + w = d->checkbox->sizeHint().width() + 2*fm.width( "xx" ); #endif } else { fh = fm.height(); @@ -766,14 +766,14 @@ void TQGroupBox::fontChange( const TQFont & oldFont ) \reimp */ -TQSize TQGroupBox::tqsizeHint() const +TQSize TQGroupBox::sizeHint() const { TQFontMetrics fm( font() ); int tw, th; if ( isCheckable() ) { #ifndef TQT_NO_CHECKBOX - tw = d->checkbox->tqsizeHint().width() + 2*fm.width( "xx" ); - th = d->checkbox->tqsizeHint().height() + fm.width( TQChar(' ') ); + tw = d->checkbox->sizeHint().width() + 2*fm.width( "xx" ); + th = d->checkbox->sizeHint().height() + fm.width( TQChar(' ') ); #endif } else { tw = fm.width( title() ) + 2 * fm.width( "xx" ); @@ -782,7 +782,7 @@ TQSize TQGroupBox::tqsizeHint() const TQSize s; if ( tqlayout() ) { - s = TQFrame::tqsizeHint(); + s = TQFrame::sizeHint(); return s.expandedTo( TQSize( tw, 0 ) ); } else { TQRect r = tqchildrenRect(); @@ -960,7 +960,7 @@ void TQGroupBox::setEnabled(bool on) void TQGroupBox::updateCheckBoxGeometry() { if ( d->checkbox ) { - TQSize cbSize = d->checkbox->tqsizeHint(); + TQSize cbSize = d->checkbox->sizeHint(); TQRect cbRect( 0, 0, cbSize.width(), cbSize.height() ); int marg = bFlat ? 2 : 8; diff --git a/tqtinterface/qt4/src/widgets/tqgroupbox.h b/tqtinterface/qt4/src/widgets/tqgroupbox.h index d73403e..3737ad7 100644 --- a/tqtinterface/qt4/src/widgets/tqgroupbox.h +++ b/tqtinterface/qt4/src/widgets/tqgroupbox.h @@ -99,7 +99,7 @@ public: void setInsideSpacing( int s ); void addSpace( int ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; bool isFlat() const; void setFlat( bool b ); diff --git a/tqtinterface/qt4/src/widgets/tqhbox.cpp b/tqtinterface/qt4/src/widgets/tqhbox.cpp index d25956d..2f33310 100644 --- a/tqtinterface/qt4/src/widgets/tqhbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqhbox.cpp @@ -51,7 +51,7 @@ \ingroup appearance All the horizontal box's child widgets will be placed alongside - each other and sized according to their tqsizeHint()s. + each other and sized according to their sizeHint()s. Use setMargin() to add space around the edges, and use setSpacing() to add space between the widgets. Use @@ -123,11 +123,11 @@ void TQHBox::setSpacing( int space ) \reimp */ -TQSize TQHBox::tqsizeHint() const +TQSize TQHBox::sizeHint() const { TQWidget *mThis = (TQWidget*)this; TQApplication::sendPostedEvents( mThis, TQEvent::ChildInserted ); - return TQFrame::tqsizeHint(); + return TQFrame::sizeHint(); } /*! diff --git a/tqtinterface/qt4/src/widgets/tqhbox.h b/tqtinterface/qt4/src/widgets/tqhbox.h index e669eb0..c67638b 100644 --- a/tqtinterface/qt4/src/widgets/tqhbox.h +++ b/tqtinterface/qt4/src/widgets/tqhbox.h @@ -57,7 +57,7 @@ public: void setSpacing( int ); bool setStretchFactor( TQWidget*, int stretch ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; protected: TQHBox( bool horizontal, TQWidget* tqparent, const char* name, WFlags f = 0 ); diff --git a/tqtinterface/qt4/src/widgets/tqheader.cpp b/tqtinterface/qt4/src/widgets/tqheader.cpp index 67fb7f0..bc49be3 100644 --- a/tqtinterface/qt4/src/widgets/tqheader.cpp +++ b/tqtinterface/qt4/src/widgets/tqheader.cpp @@ -1224,7 +1224,7 @@ void TQHeader::setIsATableHeader( bool b ) } /*! \reimp */ -TQSize TQHeader::tqsizeHint() const +TQSize TQHeader::sizeHint() const { int width; int height; @@ -1255,7 +1255,7 @@ TQSize TQHeader::tqsizeHint() const for ( int i = 0; i < count(); i++ ) height += d->sizes[i]; } - return (tqstyle().tqsizeFromContents(TQStyle::CT_Header, this, + return (tqstyle().sizeFromContents(TQStyle::CT_Header, this, TQSize(width, height)).expandedTo(TQApplication::globalStrut())); } diff --git a/tqtinterface/qt4/src/widgets/tqheader.h b/tqtinterface/qt4/src/widgets/tqheader.h index ab0f371..9456a2b 100644 --- a/tqtinterface/qt4/src/widgets/tqheader.h +++ b/tqtinterface/qt4/src/widgets/tqheader.h @@ -112,7 +112,7 @@ public: int offset() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; int mapToSection( int index ) const; int mapToIndex( int section ) const; diff --git a/tqtinterface/qt4/src/widgets/tqlabel.cpp b/tqtinterface/qt4/src/widgets/tqlabel.cpp index b29d599..0b529f0 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 = tqsizeHint(); + TQSize osh = sizeHint(); #ifndef TQT_NO_RICHTEXT bool hadRichtext = doc != 0; #endif @@ -338,7 +338,7 @@ void TQLabel::clear() */ void TQLabel::setPixmap( const TQPixmap &pixmap ) { - TQSize osh = tqsizeHint(); + TQSize osh = sizeHint(); 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 = tqsizeHint(); + TQSize osh = sizeHint(); clearContents(); lpicture = new TQPicture( picture ); @@ -439,7 +439,7 @@ void TQLabel::tqsetAlignment( int tqalignment ) { if ( tqalignment == align ) return; - TQSize osh = tqsizeHint(); + TQSize osh = sizeHint(); #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(), tqsizeHint() + \sa autoResize(), adjustSize(), sizeHint() */ 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 tqsizeHint() is returned. + w. If \a w is -1, the sizeHint() is returned. */ TQSize TQLabel::sizeForWidth( int w ) const @@ -620,7 +620,7 @@ int TQLabel::heightForWidth( int w ) const /*!\reimp */ -TQSize TQLabel::tqsizeHint() const +TQSize TQLabel::sizeHint() 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 ( tqsizePolicy().horData() == TQSizePolicy::Ignored ) + if ( sizePolicy().horData() == TQSizePolicy::Ignored ) sz.rwidth() = -1; - if ( tqsizePolicy().verData() == TQSizePolicy::Ignored ) + if ( sizePolicy().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 = tqsizePolicy(); + TQSizePolicy policy = sizePolicy(); bool wordBreak = align & TQt::WordBreak; policy.setHeightForWidth( wordBreak ); - if ( policy != tqsizePolicy() ) + if ( policy != sizePolicy() ) tqsetSizePolicy( policy ); - if ( tqsizeHint() != oldSizeHint ) + if ( sizeHint() != oldSizeHint ) updateGeometry(); if ( autoresize ) { adjustSize(); @@ -1026,7 +1026,7 @@ void TQLabel::movieResized( const TQSize& size ) void TQLabel::setMovie( const TQMovie& movie ) { - TQSize osh = tqsizeHint(); + TQSize osh = sizeHint(); clearContents(); lmovie = new TQMovie( movie ); diff --git a/tqtinterface/qt4/src/widgets/tqlabel.h b/tqtinterface/qt4/src/widgets/tqlabel.h index 654648e..cd0bba7 100644 --- a/tqtinterface/qt4/src/widgets/tqlabel.h +++ b/tqtinterface/qt4/src/widgets/tqlabel.h @@ -95,7 +95,7 @@ public: bool hasScaledContents() const; void setScaledContents( bool ); #endif - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; #ifndef TQT_NO_ACCEL virtual void setBuddy( TQWidget * ); diff --git a/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp b/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp index 16f225b..c20f6ce 100644 --- a/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp +++ b/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp @@ -1162,7 +1162,7 @@ TQLCDNumber::SegmentStyle TQLCDNumber::segmentStyle() const /*!\reimp */ -TQSize TQLCDNumber::tqsizeHint() const +TQSize TQLCDNumber::sizeHint() const { return TQSize( 10 + 9 * (numDigits() + (smallDecimalPoint() ? 0 : 1)), 23 ); } diff --git a/tqtinterface/qt4/src/widgets/tqlcdnumber.h b/tqtinterface/qt4/src/widgets/tqlcdnumber.h index e954305..0ae3b26 100644 --- a/tqtinterface/qt4/src/widgets/tqlcdnumber.h +++ b/tqtinterface/qt4/src/widgets/tqlcdnumber.h @@ -89,7 +89,7 @@ public: double value() const; int intValue() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; public Q_SLOTS: void display( const TQString &str ); diff --git a/tqtinterface/qt4/src/widgets/tqlineedit.cpp b/tqtinterface/qt4/src/widgets/tqlineedit.cpp index 2d41152..c7b08ef 100644 --- a/tqtinterface/qt4/src/widgets/tqlineedit.cpp +++ b/tqtinterface/qt4/src/widgets/tqlineedit.cpp @@ -640,14 +640,14 @@ void TQLineEdit::setValidator( const TQValidator *v ) 20 characters. */ -TQSize TQLineEdit::tqsizeHint() const +TQSize TQLineEdit::sizeHint() const { constPolish(); TQFontMetrics fm( font() ); int h = TQMAX(fm.lineSpacing(), 14) + 2*innerMargin; int w = fm.width( 'x' ) * 17; // "some" int m = frameWidth() * 2; - return (tqstyle().tqsizeFromContents(TQStyle::CT_LineEdit, this, + return (tqstyle().sizeFromContents(TQStyle::CT_LineEdit, this, TQSize( w + m, h + m ). expandedTo(TQApplication::globalStrut()))); } diff --git a/tqtinterface/qt4/src/widgets/tqlineedit.h b/tqtinterface/qt4/src/widgets/tqlineedit.h index a8c3242..9791e0b 100644 --- a/tqtinterface/qt4/src/widgets/tqlineedit.h +++ b/tqtinterface/qt4/src/widgets/tqlineedit.h @@ -102,7 +102,7 @@ public: const TQValidator * validator() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; int cursorPosition() const; diff --git a/tqtinterface/qt4/src/widgets/tqlistbox.cpp b/tqtinterface/qt4/src/widgets/tqlistbox.cpp index b829780..b785f06 100644 --- a/tqtinterface/qt4/src/widgets/tqlistbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqlistbox.cpp @@ -3074,7 +3074,7 @@ void TQListBox::emitChangedSignal( bool ) /*! \reimp */ -TQSize TQListBox::tqsizeHint() const +TQSize TQListBox::sizeHint() const { if ( cachedSizeHint().isValid() ) return cachedSizeHint(); diff --git a/tqtinterface/qt4/src/widgets/tqlistbox.h b/tqtinterface/qt4/src/widgets/tqlistbox.h index 936c69a..22447eb 100644 --- a/tqtinterface/qt4/src/widgets/tqlistbox.h +++ b/tqtinterface/qt4/src/widgets/tqlistbox.h @@ -136,7 +136,7 @@ public: bool isSelected( const TQListBoxItem * ) const; TQListBoxItem* selectedItem() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; TQListBoxItem *item( int index ) const; diff --git a/tqtinterface/qt4/src/widgets/tqlistview.cpp b/tqtinterface/qt4/src/widgets/tqlistview.cpp index bd706e9..655859f 100644 --- a/tqtinterface/qt4/src/widgets/tqlistview.cpp +++ b/tqtinterface/qt4/src/widgets/tqlistview.cpp @@ -3249,7 +3249,7 @@ void TQListView::clear() delete c; c = n; } - resizeContents( d->h->tqsizeHint().width(), contentsHeight() ); + resizeContents( d->h->sizeHint().width(), contentsHeight() ); delete d->r; d->r = 0; TQListViewPrivate::Root * r = new TQListViewPrivate::Root( this ); @@ -3640,7 +3640,7 @@ void TQListView::updateGeometries() if ( d->h->isHidden() ) { setMargins( 0, 0, 0, 0 ); } else { - TQSize hs( d->h->tqsizeHint() ); + TQSize hs( d->h->sizeHint() ); setMargins( 0, hs.height(), 0, 0 ); d->h->setGeometry( viewport()->x(), viewport()->y()-hs.height(), visibleWidth(), hs.height() ); @@ -6844,7 +6844,7 @@ void TQCheckListItem::paintFocus( TQPainter *p, const TQColorGroup & cg, /*! \reimp */ -TQSize TQListView::tqsizeHint() const +TQSize TQListView::sizeHint() const { if ( cachedSizeHint().isValid() ) return cachedSizeHint(); @@ -6855,7 +6855,7 @@ TQSize TQListView::tqsizeHint() const // force the column widths to sanity, if possible buildDrawableList(); - TQSize s( d->h->tqsizeHint() ); + TQSize s( d->h->sizeHint() ); if ( verticalScrollBar()->isVisible() ) s.setWidth( s.width() + tqstyle().tqpixelMetric(TQStyle::PM_ScrollBarExtent) ); s += TQSize(frameWidth()*2,frameWidth()*2); diff --git a/tqtinterface/qt4/src/widgets/tqlistview.h b/tqtinterface/qt4/src/widgets/tqlistview.h index 11d2110..a61419b 100644 --- a/tqtinterface/qt4/src/widgets/tqlistview.h +++ b/tqtinterface/qt4/src/widgets/tqlistview.h @@ -341,7 +341,7 @@ public: virtual bool eventFilter( TQObject * o, TQEvent * ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; virtual void setShowSortIndicator( bool show ); diff --git a/tqtinterface/qt4/src/widgets/tqmainwindow.cpp b/tqtinterface/qt4/src/widgets/tqmainwindow.cpp index 1921297..e05de63 100644 --- a/tqtinterface/qt4/src/widgets/tqmainwindow.cpp +++ b/tqtinterface/qt4/src/widgets/tqmainwindow.cpp @@ -140,7 +140,7 @@ public: void setRightDock( TQDockArea *r ); void setCentralWidget( TQWidget *w ); bool hasHeightForWidth() const { return FALSE; } - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSize() const; TQLayoutIterator iterator(); TQ_SPExpandData expandingDirections() const { return (Qt::Orientations)TQSizePolicy::BothDirections; } @@ -189,23 +189,23 @@ TQLayoutItem* TQMainWindowLayout::takeAt(int index) { return 0; } -TQSize TQMainWindowLayout::tqsizeHint() const +TQSize TQMainWindowLayout::sizeHint() const { int w = 0; int h = 0; if ( left ) { - w += left->tqsizeHint().width(); - h = TQMAX( h, left->tqsizeHint().height() ); + w += left->sizeHint().width(); + h = TQMAX( h, left->sizeHint().height() ); } if ( right ) { - w += right->tqsizeHint().width(); - h = TQMAX( h, right->tqsizeHint().height() ); + w += right->sizeHint().width(); + h = TQMAX( h, right->sizeHint().height() ); } if ( central ) { - w += central->tqsizeHint().width(); + w += central->sizeHint().width(); int diff = extraPixels(); - h = TQMAX( h, central->tqsizeHint().height() + diff ); + h = TQMAX( h, central->sizeHint().height() + diff ); } return TQSize( w, h ); @@ -1566,7 +1566,7 @@ void TQMainWindow::hide() /*! \reimp */ -TQSize TQMainWindow::tqsizeHint() const +TQSize TQMainWindow::sizeHint() const { TQMainWindow* that = (TQMainWindow*) this; // Workaround: because d->tll get's deleted in diff --git a/tqtinterface/qt4/src/widgets/tqmainwindow.h b/tqtinterface/qt4/src/widgets/tqmainwindow.h index 6cbcc02..c376b44 100644 --- a/tqtinterface/qt4/src/widgets/tqmainwindow.h +++ b/tqtinterface/qt4/src/widgets/tqmainwindow.h @@ -98,7 +98,7 @@ public: void show(); void hide(); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; bool rightJustification() const; diff --git a/tqtinterface/qt4/src/widgets/tqmenubar.cpp b/tqtinterface/qt4/src/widgets/tqmenubar.cpp index aadb3ee..a0751f4 100644 --- a/tqtinterface/qt4/src/widgets/tqmenubar.cpp +++ b/tqtinterface/qt4/src/widgets/tqmenubar.cpp @@ -734,17 +734,17 @@ void TQMenuBar::openActPopup() TQPoint pos = r.bottomLeft() + TQPoint(0,yoffset); if( reverse ) { pos = r.bottomRight() + TQPoint(0,yoffset); - pos.rx() -= popup->tqsizeHint().width(); + pos.rx() -= popup->sizeHint().width(); } - int ph = popup->tqsizeHint().height(); + int ph = popup->sizeHint().height(); pos = mapToGlobal(pos); int sh = TQApplication::desktop()->height(); if ( defaultup || (pos.y() + ph > sh) ) { TQPoint t = mapToGlobal( r.topLeft() ); if( reverse ) { t = mapToGlobal( r.topRight() ); - t.rx() -= popup->tqsizeHint().width(); + t.rx() -= popup->sizeHint().width(); } t.ry() -= (TQCOORD)ph; if ( !defaultup || t.y() >= 0 ) @@ -940,8 +940,8 @@ int TQMenuBar::calculateRects( int max_width ) if ( mi->widget()->parentWidget() != this ) { mi->widget()->reparent( this, TQPoint(0,0) ); } - w = mi->widget()->tqsizeHint().expandedTo( TQApplication::globalStrut() ).width()+2; - h = mi->widget()->tqsizeHint().expandedTo( TQApplication::globalStrut() ).height()+2; + w = mi->widget()->sizeHint().expandedTo( TQApplication::globalStrut() ).width()+2; + h = mi->widget()->sizeHint().expandedTo( TQApplication::globalStrut() ).height()+2; if ( i && separator < 0 ) separator = i; } else if ( mi->pixmap() ) { // pixmap item @@ -1031,7 +1031,7 @@ int TQMenuBar::calculateRects( int max_width ) irects[i].setHeight( max_item_height ); TQMenuItem *mi = mitems->at(i); if ( mi->widget() ) { - TQRect r ( TQPoint(0,0), mi->widget()->tqsizeHint() ); + TQRect r ( TQPoint(0,0), mi->widget()->sizeHint() ); r.moveCenter( irects[i].center() ); mi->widget()->setGeometry( r ); if( mi->widget()->isHidden() ) @@ -1598,7 +1598,7 @@ void TQMenuBar::focusOutEvent( TQFocusEvent * ) \reimp */ -TQSize TQMenuBar::tqsizeHint() const +TQSize TQMenuBar::sizeHint() const { int h = height(); if ( badSize ) @@ -1609,7 +1609,7 @@ TQSize TQMenuBar::tqsizeHint() const s.setWidth( s.width() + irects[ i ].width() + 2 ); } s.setHeight( h ); - return (tqstyle().tqsizeFromContents(TQStyle::CT_MenuBar, this, s. + return (tqstyle().sizeFromContents(TQStyle::CT_MenuBar, this, s. expandedTo(TQApplication::globalStrut()))); } @@ -1622,7 +1622,7 @@ TQSize TQMenuBar::tqminimumSize() const #ifndef TQT_NO_TOOLBAR TQToolBar *tb = ::tqqt_cast<TQToolBar*>(tqparent()); if ( tb ) - return tqsizeHint(); + return sizeHint(); #endif return TQFrame::tqminimumSize(); } diff --git a/tqtinterface/qt4/src/widgets/tqmenubar.h b/tqtinterface/qt4/src/widgets/tqmenubar.h index 6b32031..618b8ed 100644 --- a/tqtinterface/qt4/src/widgets/tqmenubar.h +++ b/tqtinterface/qt4/src/widgets/tqmenubar.h @@ -81,7 +81,7 @@ public: bool customWhatsThis() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSize() const; TQSize tqminimumSizeHint() const; diff --git a/tqtinterface/qt4/src/widgets/tqmenudata.cpp b/tqtinterface/qt4/src/widgets/tqmenudata.cpp index 2f0fd80..cb2932f 100644 --- a/tqtinterface/qt4/src/widgets/tqmenudata.cpp +++ b/tqtinterface/qt4/src/widgets/tqmenudata.cpp @@ -1471,7 +1471,7 @@ TQString TQMenuData::whatsThis( int id ) const \ingroup misc A custom menu item is a menu item that is defined by two pure - virtual functions, paint() and tqsizeHint(). The size hint tells the + virtual functions, paint() and sizeHint(). The size hint tells the menu how much space it needs to reserve for this item, and paint is called whenever the item needs painting. @@ -1575,7 +1575,7 @@ bool TQCustomMenuItem::isSeparator() const /*! - \fn TQSize TQCustomMenuItem::tqsizeHint(); + \fn TQSize TQCustomMenuItem::sizeHint(); Returns the item's size hint. */ diff --git a/tqtinterface/qt4/src/widgets/tqmenudata.h b/tqtinterface/qt4/src/widgets/tqmenudata.h index 96128c0..95fb7eb 100644 --- a/tqtinterface/qt4/src/widgets/tqmenudata.h +++ b/tqtinterface/qt4/src/widgets/tqmenudata.h @@ -133,7 +133,7 @@ public: virtual void setFont( const TQFont& font ); virtual void paint( TQPainter* p, const TQColorGroup& cg, bool act, bool enabled, int x, int y, int w, int h ) = 0; - virtual TQSize tqsizeHint() = 0; + virtual TQSize sizeHint() = 0; }; diff --git a/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp b/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp index bbfdb60..d9a9f58 100644 --- a/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp +++ b/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp @@ -483,7 +483,7 @@ void TQPopupMenu::frameChanged() you cannot rely on the popup menu's current size(). For performance reasons, the popup adapts its size only when necessary, so in many cases, the size before and after the show is - different. Instead, use tqsizeHint(). It calculates the proper size + different. Instead, use sizeHint(). It calculates the proper size depending on the menu's current contents. */ @@ -613,7 +613,7 @@ void TQPopupMenu::popup( const TQPoint &pos, int indexAtPoint ) register TQMenuItem *mi = NULL; TQMenuItemListIt it(*mitems); for(int tmp_y = 0; tmp_y < off_top && (mi=it.current()); ) { - TQSize sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this, + TQSize sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemHeight( mi )), TQStyleOption(mi,maxPMWidth,0)); tmp_y += sz.height(); @@ -940,7 +940,7 @@ int TQPopupMenu::itemAtPos( const TQPoint &pos, bool ignoreSeparator ) const } int itemh = itemHeight( mi ); - sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this, + sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemh), TQStyleOption(mi,maxPMWidth)); sz = sz.expandedTo(TQSize(itemw, sz.height())); @@ -999,7 +999,7 @@ TQRect TQPopupMenu::itemGeometry( int index ) } int itemh = itemHeight( mi ); - sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this, + sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemh), TQStyleOption(mi,maxPMWidth)); sz = sz.expandedTo(TQSize(itemw, sz.height())); @@ -1086,7 +1086,7 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize) int itemHeight = TQPopupMenu::itemHeight( mi ); if ( mi->widget() ) { - TQSize s( mi->widget()->tqsizeHint() ); + TQSize s( mi->widget()->sizeHint() ); s = s.expandedTo( mi->widget()->tqminimumSize() ); mi->widget()->resize( s ); if ( s.width() > maxWidgetWidth ) @@ -1097,9 +1097,9 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize) if ( mi->custom() ) { if ( mi->custom()->fullSpan() ) { maxWidgetWidth = TQMAX( maxWidgetWidth, - mi->custom()->tqsizeHint().width() ); + mi->custom()->sizeHint().width() ); } else { - TQSize s ( mi->custom()->tqsizeHint() ); + TQSize s ( mi->custom()->sizeHint() ); w += s.width(); } } @@ -1125,14 +1125,14 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize) w += mi->pixmap()->width(); } else { if ( mi->custom() ) { - TQSize s ( mi->custom()->tqsizeHint() ); + TQSize s ( mi->custom()->sizeHint() ); w += s.width(); } else { w = itemHeight = 2; } } - TQSize sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this, + TQSize sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(w, itemHeight), TQStyleOption(mi,maxPMWidth)); @@ -1202,7 +1202,7 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize) int itemh = itemHeight( mi ); - sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this, + sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemh), TQStyleOption(mi,maxPMWidth)); sz = sz.expandedTo(TQSize(itemw, sz.height())); itemw = sz.width(); @@ -1439,7 +1439,7 @@ int TQPopupMenu::itemHeight( TQMenuItem *mi ) const if ( mi->widget() ) return mi->widget()->height(); if ( mi->custom() && mi->custom()->fullSpan() ) - return mi->custom()->tqsizeHint().height(); + return mi->custom()->sizeHint().height(); TQFontMetrics fm(fontMetrics()); int h = 0; @@ -1454,7 +1454,7 @@ int TQPopupMenu::itemHeight( TQMenuItem *mi ) const h = TQMAX(h, mi->iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal ).height()); if ( mi->custom() ) - h = TQMAX(h, mi->custom()->tqsizeHint().height()); + h = TQMAX(h, mi->custom()->sizeHint().height()); return h; } @@ -1536,7 +1536,7 @@ void TQPopupMenu::drawContents( TQPainter* p ) continue; } int itemh = itemHeight( mi ); - sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this, + sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemh), TQStyleOption(mi,maxPMWidth,0) ); @@ -2157,7 +2157,7 @@ void TQPopupMenu::keyPressEvent( TQKeyEvent *e ) for(int i = 0, y = ((d->scroll.scrollable & TQPopupMenuPrivate::Scroll::ScrollUp) ? sh : 0); it.current(); i++, ++it) { if(i >= d->scroll.topScrollableIndex) { int itemh = itemHeight(it.current()); - TQSize sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this, + TQSize sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemh), TQStyleOption(it.current(),maxPMWidth,0)); y += sz.height(); @@ -2235,7 +2235,7 @@ void TQPopupMenu::enabledChange( bool ) This functions returns the number of columns necessary. - \sa tqsizeHint() + \sa sizeHint() */ int TQPopupMenu::columns() const { @@ -2278,7 +2278,7 @@ void TQPopupMenu::subScrollTimer() { for(int i = 0, y = contentsRect().y() + sh; it.current(); i++, ++it) { if(i >= d->scroll.topScrollableIndex) { int itemh = itemHeight(it.current()); - TQSize sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemh), + TQSize sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemh), TQStyleOption(it.current(),maxPMWidth,0)); y += sz.height(); if(y > contentsRect().height() - sh) { @@ -2328,7 +2328,7 @@ void TQPopupMenu::subMenuTimer() { TQRect r( itemGeometry( actItem ) ); TQPoint p; - TQSize ps = popup->tqsizeHint(); + TQSize ps = popup->sizeHint(); if( TQApplication::reverseLayout() ) { p = TQPoint( r.left() + motifArrowHMargin - ps.width(), r.top() + motifArrowVMargin ); p = mapToGlobal( p ); @@ -2440,10 +2440,10 @@ void TQPopupMenu::updateRow( int row ) you cannot rely on the popup menu's current size(). For performance reasons, the popup adapts its size only when necessary. So in many cases, the size before and after the show is - different. Instead, use tqsizeHint(). It calculates the proper size + different. Instead, use sizeHint(). It calculates the proper size depending on the menu's current contents. - \sa popup(), tqsizeHint() + \sa popup(), sizeHint() */ int TQPopupMenu::exec( const TQPoint & pos, int indexAtPoint ) @@ -2564,11 +2564,11 @@ void TQPopupMenu::setActiveItem( int i ) /*! \reimp */ -TQSize TQPopupMenu::tqsizeHint() const +TQSize TQPopupMenu::sizeHint() const { constPolish(); TQPopupMenu* that = (TQPopupMenu*) this; - //We do not need a resize here, just the tqsizeHint.. + //We do not need a resize here, just the sizeHint.. return that->updateSize(FALSE, FALSE).expandedTo( TQApplication::globalStrut() ); } @@ -2674,7 +2674,7 @@ public: return TRUE; } - TQSize tqsizeHint() + TQSize sizeHint() { return TQSize( 20, 6 ); } @@ -2834,7 +2834,7 @@ TQPopupMenu::updateScrollerState() while ( (mi=it.current()) ) { ++it; int myheight = contentsRect().height(); - TQSize sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this, + TQSize sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemHeight( mi )), TQStyleOption(mi,maxPMWidth)); if(y + sz.height() >= myheight) { diff --git a/tqtinterface/qt4/src/widgets/tqpopupmenu.h b/tqtinterface/qt4/src/widgets/tqpopupmenu.h index 0dd00b5..34b208b 100644 --- a/tqtinterface/qt4/src/widgets/tqpopupmenu.h +++ b/tqtinterface/qt4/src/widgets/tqpopupmenu.h @@ -72,7 +72,7 @@ public: int exec( const TQPoint & pos, int indexAtPoint = 0 ); // modal virtual void setActiveItem( int ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; int idAt( int index ) const { return TQMenuData::idAt( index ); } int idAt( const TQPoint& pos ) const; diff --git a/tqtinterface/qt4/src/widgets/tqprogressbar.cpp b/tqtinterface/qt4/src/widgets/tqprogressbar.cpp index e00d12d..8c6e8ca 100644 --- a/tqtinterface/qt4/src/widgets/tqprogressbar.cpp +++ b/tqtinterface/qt4/src/widgets/tqprogressbar.cpp @@ -229,12 +229,12 @@ void TQProgressBar::setProgress( int progress, int totalSteps ) /*! \reimp */ -TQSize TQProgressBar::tqsizeHint() const +TQSize TQProgressBar::sizeHint() const { constPolish(); TQFontMetrics fm = fontMetrics(); int cw = tqstyle().tqpixelMetric(TQStyle::PM_ProgressBarChunkWidth, this); - return tqstyle().tqsizeFromContents(TQStyle::CT_ProgressBar, this, + return tqstyle().sizeFromContents(TQStyle::CT_ProgressBar, this, TQSize( cw * 7 + fm.width( '0' ) * 4, fm.height() + 8)); } @@ -245,7 +245,7 @@ TQSize TQProgressBar::tqsizeHint() const */ TQSize TQProgressBar::tqminimumSizeHint() const { - return tqsizeHint(); + return sizeHint(); } /*! diff --git a/tqtinterface/qt4/src/widgets/tqprogressbar.h b/tqtinterface/qt4/src/widgets/tqprogressbar.h index 7b9d191..93f484e 100644 --- a/tqtinterface/qt4/src/widgets/tqprogressbar.h +++ b/tqtinterface/qt4/src/widgets/tqprogressbar.h @@ -70,7 +70,7 @@ public: int progress() const; const TQString &progressString() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; void setCenterIndicator( bool on ); diff --git a/tqtinterface/qt4/src/widgets/tqpushbutton.cpp b/tqtinterface/qt4/src/widgets/tqpushbutton.cpp index e8583ff..d1047b4 100644 --- a/tqtinterface/qt4/src/widgets/tqpushbutton.cpp +++ b/tqtinterface/qt4/src/widgets/tqpushbutton.cpp @@ -402,7 +402,7 @@ void TQPushButton::setDefault( bool enable ) /*! \reimp */ -TQSize TQPushButton::tqsizeHint() const +TQSize TQPushButton::sizeHint() const { constPolish(); @@ -437,7 +437,7 @@ TQSize TQPushButton::tqsizeHint() const h = TQMAX(h, sz.height()); } - return (tqstyle().tqsizeFromContents(TQStyle::CT_PushButton, this, TQSize(w, h)). + return (tqstyle().sizeFromContents(TQStyle::CT_PushButton, this, TQSize(w, h)). expandedTo(TQApplication::globalStrut())); } @@ -712,24 +712,24 @@ void TQPushButton::popupPressed() #endif if ( horizontal ) { if ( topLeft ) { - if ( mapToGlobal( TQPoint( 0, rect().bottom() ) ).y() + popup->tqsizeHint().height() <= tqApp->desktop()->height() ) + if ( mapToGlobal( TQPoint( 0, rect().bottom() ) ).y() + popup->sizeHint().height() <= tqApp->desktop()->height() ) popup->exec( mapToGlobal( rect().bottomLeft() ) ); else - popup->exec( mapToGlobal( rect().topLeft() - TQPoint( 0, popup->tqsizeHint().height() ) ) ); + popup->exec( mapToGlobal( rect().topLeft() - TQPoint( 0, popup->sizeHint().height() ) ) ); } else { - TQSize sz( popup->tqsizeHint() ); + TQSize sz( popup->sizeHint() ); TQPoint p = mapToGlobal( rect().topLeft() ); p.ry() -= sz.height(); popup->exec( p ); } } else { if ( topLeft ) { - if ( mapToGlobal( TQPoint( rect().right(), 0 ) ).x() + popup->tqsizeHint().width() <= tqApp->desktop()->width() ) + if ( mapToGlobal( TQPoint( rect().right(), 0 ) ).x() + popup->sizeHint().width() <= tqApp->desktop()->width() ) popup->exec( mapToGlobal( rect().topRight() ) ); else - popup->exec( mapToGlobal( rect().topLeft() - TQPoint( popup->tqsizeHint().width(), 0 ) ) ); + popup->exec( mapToGlobal( rect().topLeft() - TQPoint( popup->sizeHint().width(), 0 ) ) ); } else { - TQSize sz( popup->tqsizeHint() ); + TQSize sz( popup->sizeHint() ); TQPoint p = mapToGlobal( rect().topLeft() ); p.rx() -= sz.width(); popup->exec( p ); diff --git a/tqtinterface/qt4/src/widgets/tqpushbutton.h b/tqtinterface/qt4/src/widgets/tqpushbutton.h index 92a375d..6cbcb05 100644 --- a/tqtinterface/qt4/src/widgets/tqpushbutton.h +++ b/tqtinterface/qt4/src/widgets/tqpushbutton.h @@ -72,7 +72,7 @@ public: #endif ~TQPushButton(); - TQSize tqsizeHint() const; + TQSize sizeHint() const; void move( int x, int y ); void move( const TQPoint &p ); diff --git a/tqtinterface/qt4/src/widgets/tqradiobutton.cpp b/tqtinterface/qt4/src/widgets/tqradiobutton.cpp index 69bdedb..0ddddf8 100644 --- a/tqtinterface/qt4/src/widgets/tqradiobutton.cpp +++ b/tqtinterface/qt4/src/widgets/tqradiobutton.cpp @@ -156,17 +156,17 @@ void TQRadioButton::setChecked( bool check ) /*! \reimp */ -TQSize TQRadioButton::tqsizeHint() const +TQSize TQRadioButton::sizeHint() const { // Any more complex, and we will use tqstyle().tqitemRect() - // NB: TQCheckBox::tqsizeHint() is similar + // NB: TQCheckBox::sizeHint() is similar constPolish(); TQPainter p(this); TQSize sz = tqstyle().tqitemRect(&p, TQRect(0, 0, 1, 1), TQt::ShowPrefix, FALSE, pixmap(), text()).size(); - return (tqstyle().tqsizeFromContents(TQStyle::CT_RadioButton, this, sz). + return (tqstyle().sizeFromContents(TQStyle::CT_RadioButton, this, sz). expandedTo(TQApplication::globalStrut())); } @@ -321,7 +321,7 @@ void TQRadioButton::resizeEvent( TQResizeEvent* e ) TQPainter p(this); TQSize isz = tqstyle().tqitemRect(&p, TQRect(0, 0, 1, 1), TQt::ShowPrefix, FALSE, pixmap(), text()).size(); - TQSize wsz = (tqstyle().tqsizeFromContents(TQStyle::CT_RadioButton, this, isz). + TQSize wsz = (tqstyle().sizeFromContents(TQStyle::CT_RadioButton, this, isz). expandedTo(TQApplication::globalStrut())); update(wsz.width(), isz.width(), 0, wsz.height()); diff --git a/tqtinterface/qt4/src/widgets/tqradiobutton.h b/tqtinterface/qt4/src/widgets/tqradiobutton.h index 50f9927..e496006 100644 --- a/tqtinterface/qt4/src/widgets/tqradiobutton.h +++ b/tqtinterface/qt4/src/widgets/tqradiobutton.h @@ -60,7 +60,7 @@ public: bool isChecked() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; public Q_SLOTS: virtual void setChecked( bool check ); diff --git a/tqtinterface/qt4/src/widgets/tqscrollbar.cpp b/tqtinterface/qt4/src/widgets/tqscrollbar.cpp index 09d1575..af9ab56 100644 --- a/tqtinterface/qt4/src/widgets/tqscrollbar.cpp +++ b/tqtinterface/qt4/src/widgets/tqscrollbar.cpp @@ -319,7 +319,7 @@ void TQScrollBar::setOrientation( Qt::Orientation orientation ) if ( orientation == orient ) return; if ( !testWState( TQt::WState_OwnSizePolicy ) ) { - TQSizePolicy sp = tqsizePolicy(); + TQSizePolicy sp = sizePolicy(); sp.transpose(); tqsetSizePolicy( sp ); clearWState( TQt::WState_OwnSizePolicy ); @@ -371,7 +371,7 @@ void TQScrollBar::setPalette( const TQPalette &p ) /*! \reimp */ -TQSize TQScrollBar::tqsizeHint() const +TQSize TQScrollBar::sizeHint() const { constPolish(); int sbextent = tqstyle().tqpixelMetric(TQStyle::PM_ScrollBarExtent, this); diff --git a/tqtinterface/qt4/src/widgets/tqscrollbar.h b/tqtinterface/qt4/src/widgets/tqscrollbar.h index cf48a05..44d47e1 100644 --- a/tqtinterface/qt4/src/widgets/tqscrollbar.h +++ b/tqtinterface/qt4/src/widgets/tqscrollbar.h @@ -77,7 +77,7 @@ public: bool draggingSlider() const; virtual void setPalette( const TQPalette & ); - virtual TQSize tqsizeHint() const; + virtual TQSize sizeHint() const; virtual void tqsetSizePolicy( TQSizePolicy sp ); void tqsetSizePolicy( TQSizePolicy::SizeType hor, TQSizePolicy::SizeType ver, bool hfw = FALSE ); diff --git a/tqtinterface/qt4/src/widgets/tqscrollview.cpp b/tqtinterface/qt4/src/widgets/tqscrollview.cpp index 49c5b4d..1c43180 100644 --- a/tqtinterface/qt4/src/widgets/tqscrollview.cpp +++ b/tqtinterface/qt4/src/widgets/tqscrollview.cpp @@ -176,7 +176,7 @@ public: bool anyVisibleChildren(); void autoMove(TQScrollView* sv); void autoResize(TQScrollView* sv); - void autoRetqsizeHint(TQScrollView* sv); + void autoResizeHint(TQScrollView* sv); void viewportResized( int w, int h ); TQScrollBar* hbar; @@ -314,19 +314,19 @@ void TQScrollViewData::autoResize(TQScrollView* sv) } } -void TQScrollViewData::autoRetqsizeHint(TQScrollView* sv) +void TQScrollViewData::autoResizeHint(TQScrollView* sv) { if ( policy == TQScrollView::AutoOne ) { TQSVChildRec* r = tqchildren.first(); if (r) { - TQSize s = r->child->tqsizeHint(); + TQSize s = r->child->sizeHint(); if ( s.isValid() ) r->child->resize(s); } } else if ( policy == TQScrollView::AutoOneFit ) { TQSVChildRec* r = tqchildren.first(); if (r) { - TQSize sh = r->child->tqsizeHint(); + TQSize sh = r->child->sizeHint(); sh = sh.boundedTo( r->child->tqmaximumSize() ); sv->resizeContents( sh.width(), sh.height() ); } @@ -338,7 +338,7 @@ void TQScrollViewData::viewportResized( int w, int h ) if ( policy == TQScrollView::AutoOneFit ) { TQSVChildRec* r = tqchildren.first(); if (r) { - TQSize sh = r->child->tqsizeHint(); + TQSize sh = r->child->sizeHint(); sh = sh.boundedTo( r->child->tqmaximumSize() ); r->child->resize( TQMAX(w,sh.width()), TQMAX(h,sh.height()) ); } @@ -562,12 +562,12 @@ void TQScrollViewData::viewportResized( int w, int h ) the size of that widget. Otherwise the behavior is undefined. \value AutoOneFit if there is only one child widget the contents stays - the size of that widget's tqsizeHint(). If the scrollview is resized - larger than the child's tqsizeHint(), the child will be resized to + the size of that widget's sizeHint(). If the scrollview is resized + larger than the child's sizeHint(), the child will be resized to fit. If there is more than one child, the behavior is undefined. */ -//#### The widget will be resized to its tqsizeHint() when a LayoutHint event +//#### The widget will be resized to its sizeHint() when a LayoutHint event //#### is received /*! @@ -794,8 +794,8 @@ TQSize TQScrollView::viewportSize( int x, int y ) const bool needh, needv; bool showh, showv; - int hsbExt = horizontalScrollBar()->tqsizeHint().height(); - int vsbExt = verticalScrollBar()->tqsizeHint().width(); + int hsbExt = horizontalScrollBar()->sizeHint().height(); + int vsbExt = verticalScrollBar()->sizeHint().width(); if ( d->policy != AutoOne || d->anyVisibleChildren() ) { // Do we definitely need the scrollbar? @@ -865,8 +865,8 @@ void TQScrollView::updateScrollBars() bool showv; bool showc = FALSE; - int hsbExt = horizontalScrollBar()->tqsizeHint().height(); - int vsbExt = verticalScrollBar()->tqsizeHint().width(); + int hsbExt = horizontalScrollBar()->sizeHint().height(); + int vsbExt = verticalScrollBar()->sizeHint().width(); TQSize oldVisibleSize( visibleWidth(), visibleHeight() ); @@ -1401,7 +1401,7 @@ void TQScrollView::addChild(TQWidget* child, int x, int y) if (r) { r->moveTo(this,x,y,d->clipped_viewport); if ( d->policy > Manual ) { - d->autoRetqsizeHint(this); + d->autoResizeHint(this); d->autoResize(this); // #### better to just deal with this one widget! } return; @@ -1422,7 +1422,7 @@ void TQScrollView::addChild(TQWidget* child, int x, int y) d->addChildRec(child,x,y)->hideOrShow(this, d->clipped_viewport); if ( d->policy > Manual ) { - d->autoRetqsizeHint(this); + d->autoResizeHint(this); d->autoResize(this); // #### better to just deal with this one widget! } } @@ -1551,7 +1551,7 @@ bool TQScrollView::eventFilter( TQObject *obj, TQEvent *e ) removeChild((TQWidget*)((TQChildEvent*)e)->child()); break; case TQEvent::LayoutHint: - d->autoRetqsizeHint(this); + d->autoResizeHint(this); break; default: break; @@ -2688,7 +2688,7 @@ void TQScrollView::viewportToContents( int vx, int vy, int& x, int& y ) const /*! \reimp */ -TQSize TQScrollView::tqsizeHint() const +TQSize TQScrollView::sizeHint() const { if ( d->use_cached_size_hint && d->cachedSizeHint.isValid() ) return d->cachedSizeHint; @@ -2700,7 +2700,7 @@ TQSize TQScrollView::tqsizeHint() const if ( d->policy > Manual ) { TQSVChildRec *r = d->tqchildren.first(); if ( r ) { - TQSize cs = r->child->tqsizeHint(); + TQSize cs = r->child->sizeHint(); if ( cs.isValid() ) sz += cs.boundedTo( r->child->tqmaximumSize() ); else @@ -2710,9 +2710,9 @@ TQSize TQScrollView::tqsizeHint() const sz += TQSize( d->contentsWidth(), contentsHeight() ); } if (d->vMode == AlwaysOn) - sz.setWidth(sz.width() + d->vbar->tqsizeHint().width()); + sz.setWidth(sz.width() + d->vbar->sizeHint().width()); if (d->hMode == AlwaysOn) - sz.setHeight(sz.height() + d->hbar->tqsizeHint().height()); + sz.setHeight(sz.height() + d->hbar->sizeHint().height()); return sz.expandedTo( TQSize(12 * h, 8 * h) ) .boundedTo( TQSize(36 * h, 24 * h) ); } diff --git a/tqtinterface/qt4/src/widgets/tqscrollview.h b/tqtinterface/qt4/src/widgets/tqscrollview.h index caa86bb..f881c0e 100644 --- a/tqtinterface/qt4/src/widgets/tqscrollview.h +++ b/tqtinterface/qt4/src/widgets/tqscrollview.h @@ -135,7 +135,7 @@ public: bool hasStaticBackground() const; TQSize viewportSize( int, int ) const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; void removeChild(TQObject* child); diff --git a/tqtinterface/qt4/src/widgets/tqslider.cpp b/tqtinterface/qt4/src/widgets/tqslider.cpp index 9d3ece2..d8a3ffa 100644 --- a/tqtinterface/qt4/src/widgets/tqslider.cpp +++ b/tqtinterface/qt4/src/widgets/tqslider.cpp @@ -729,7 +729,7 @@ int TQSlider::goodPart( const TQPoint &p ) const /*! \reimp */ -TQSize TQSlider::tqsizeHint() const +TQSize TQSlider::sizeHint() const { constPolish(); const int length = 84, tickSpace = 5; @@ -743,7 +743,7 @@ TQSize TQSlider::tqsizeHint() const w = length; h = thick; } - return (tqstyle().tqsizeFromContents(TQStyle::CT_Slider, this, + return (tqstyle().sizeFromContents(TQStyle::CT_Slider, this, TQSize(w, h)).expandedTo(TQApplication::globalStrut())); } @@ -755,7 +755,7 @@ TQSize TQSlider::tqsizeHint() const TQSize TQSlider::tqminimumSizeHint() const { - TQSize s = tqsizeHint(); + TQSize s = sizeHint(); int length = tqstyle().tqpixelMetric(TQStyle::PM_SliderLength, this); if ( orient == Qt::Horizontal ) s.setWidth( length ); @@ -780,7 +780,7 @@ void TQSlider::tqsetSizePolicy( TQSizePolicy sp ) TQSizePolicy TQSlider::sizePolicy() const { // ### 4.0 remove this reimplementation - return TQWidget::tqsizePolicy(); + return TQWidget::sizePolicy(); } /*! diff --git a/tqtinterface/qt4/src/widgets/tqslider.h b/tqtinterface/qt4/src/widgets/tqslider.h index ac6177d..a759782 100644 --- a/tqtinterface/qt4/src/widgets/tqslider.h +++ b/tqtinterface/qt4/src/widgets/tqslider.h @@ -85,7 +85,7 @@ public: int sliderStart() const; TQRect sliderRect() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; void tqsetSizePolicy( TQSizePolicy sp ); void tqsetSizePolicy( TQSizePolicy::SizeType hor, TQSizePolicy::SizeType ver, bool hfw = FALSE ); diff --git a/tqtinterface/qt4/src/widgets/tqspinbox.cpp b/tqtinterface/qt4/src/widgets/tqspinbox.cpp index 579d93b..f284d2c 100644 --- a/tqtinterface/qt4/src/widgets/tqspinbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqspinbox.cpp @@ -496,10 +496,10 @@ bool TQSpinBox::wrapping() const /*! \reimp */ -TQSize TQSpinBox::tqsizeHint() const +TQSize TQSpinBox::sizeHint() const { constPolish(); - TQSize sz = vi->tqsizeHint(); + TQSize sz = vi->sizeHint(); int h = sz.height(); TQFontMetrics fm( font() ); int w = 35; @@ -513,7 +513,7 @@ TQSize TQSpinBox::tqsizeHint() const s = specialValueText(); w = TQMAX( w, fm.width( s ) + wx ); } - return tqstyle().tqsizeFromContents(TQStyle::CT_SpinBox, this, + return tqstyle().sizeFromContents(TQStyle::CT_SpinBox, this, TQSize( w + d->controls->downRect().width(), h + tqstyle().tqpixelMetric( TQStyle::PM_DefaultFrameWidth ) * 2). expandedTo( TQApplication::globalStrut() )); diff --git a/tqtinterface/qt4/src/widgets/tqspinbox.h b/tqtinterface/qt4/src/widgets/tqspinbox.h index 2e18cef..2be3150 100644 --- a/tqtinterface/qt4/src/widgets/tqspinbox.h +++ b/tqtinterface/qt4/src/widgets/tqspinbox.h @@ -94,7 +94,7 @@ public: virtual void setValidator( const TQValidator* v ); const TQValidator * validator() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; int minValue() const; diff --git a/tqtinterface/qt4/src/widgets/tqsplitter.cpp b/tqtinterface/qt4/src/widgets/tqsplitter.cpp index 2750a45..78b9f90 100644 --- a/tqtinterface/qt4/src/widgets/tqsplitter.cpp +++ b/tqtinterface/qt4/src/widgets/tqsplitter.cpp @@ -63,7 +63,7 @@ public: bool opaque() const { return s->opaqueResize(); } - TQSize tqsizeHint() const; + TQSize sizeHint() const; int id() const { return myId; } // d->list.at(id())->wid == this void setId( int i ) { myId = i; } @@ -126,10 +126,10 @@ TQSplitterHandle::TQSplitterHandle( Qt::Orientation o, TQSplitter *tqparent, setOrientation( o ); } -TQSize TQSplitterHandle::tqsizeHint() const +TQSize TQSplitterHandle::sizeHint() const { int hw = s->handleWidth(); - return parentWidget()->tqstyle().tqsizeFromContents( TQStyle::CT_Splitter, s, + return parentWidget()->tqstyle().sizeFromContents( TQStyle::CT_Splitter, s, TQSize(hw, hw) ) .expandedTo( TQApplication::globalStrut() ); } @@ -197,7 +197,7 @@ public: TQCOORD TQSplitterLayoutStruct::getSizer( Qt::Orientation orient ) { if ( sizer == -1 ) { - TQSize s = wid->tqsizeHint(); + TQSize s = wid->sizeHint(); if ( !s.isValid() || wid->testWState(WState_Resized) ) s = wid->size(); sizer = ( orient == Qt::Horizontal ) ? s.width() : s.height(); @@ -339,7 +339,7 @@ void TQSplitter::setOrientation( Qt::Orientation o ) return; if ( !testWState( TQt::WState_OwnSizePolicy ) ) { - TQSizePolicy sp = tqsizePolicy(); + TQSizePolicy sp = sizePolicy(); sp.transpose(); tqsetSizePolicy( sp ); clearWState( TQt::WState_OwnSizePolicy ); @@ -435,7 +435,7 @@ TQSplitterLayoutStruct *TQSplitter::addWidget( TQWidget *w, bool prepend ) s->wid = newHandle; newHandle->setId( d->list.count() ); s->isHandle = TRUE; - s->sizer = pick( newHandle->tqsizeHint() ); + s->sizer = pick( newHandle->sizeHint() ); if ( prepend ) d->list.prepend( s ); else @@ -852,14 +852,14 @@ void TQSplitter::doResize() if ( s->wid->isHidden() || isCollapsed(s->wid) ) { a[i].tqmaximumSize = 0; } else if ( s->isHandle ) { - a[i].tqsizeHint = a[i].tqminimumSize = a[i].tqmaximumSize = s->sizer; + a[i].sizeHint = a[i].tqminimumSize = a[i].tqmaximumSize = s->sizer; a[i].empty = FALSE; } else { int mode = s->resizeMode; int stretch = 1; if ( mode == DefaultResizeMode ) { - TQSizePolicy p = s->wid->tqsizePolicy(); + TQSizePolicy p = s->wid->sizePolicy(); int sizePolicyStretch = pick( TQSize(p.horStretch(), p.verStretch()) ); if ( sizePolicyStretch > 0 ) { @@ -890,11 +890,11 @@ void TQSplitter::doResize() stretch *= s->getSizer( orient ); // TQMIN(): ad hoc work-around for tqlayout engine limitation a[i].stretch = TQMIN( stretch, 8192 ); - a[i].tqsizeHint = a[i].tqminimumSize; + a[i].sizeHint = a[i].tqminimumSize; } else if ( mode == KeepSize ) { - a[i].tqsizeHint = s->getSizer( orient ); + a[i].sizeHint = s->getSizer( orient ); } else { // mode == FollowSizeHint - a[i].tqsizeHint = pick( s->wid->tqsizeHint() ); + a[i].sizeHint = pick( s->wid->sizeHint() ); } } } @@ -1109,7 +1109,7 @@ void TQSplitter::recalcId() /*! \reimp */ -TQSize TQSplitter::tqsizeHint() const +TQSize TQSplitter::sizeHint() const { constPolish(); int l = 0; @@ -1121,7 +1121,7 @@ TQSize TQSplitter::tqsizeHint() const while( (o = it.current()) != 0 ) { ++it; if ( o->isWidgetType() && !((TQWidget*)o)->isHidden() ) { - TQSize s = ((TQWidget*)o)->tqsizeHint(); + TQSize s = ((TQWidget*)o)->sizeHint(); if ( s.isValid() ) { l += pick( s ); t = TQMAX( t, trans( s ) ); diff --git a/tqtinterface/qt4/src/widgets/tqsplitter.h b/tqtinterface/qt4/src/widgets/tqsplitter.h index b9d536d..3fc1f48 100644 --- a/tqtinterface/qt4/src/widgets/tqsplitter.h +++ b/tqtinterface/qt4/src/widgets/tqsplitter.h @@ -87,7 +87,7 @@ public: void moveToLast( TQWidget * ); void refresh() { recalc( TRUE ); } - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; TQValueList<int> sizes() const; diff --git a/tqtinterface/qt4/src/widgets/tqstatusbar.cpp b/tqtinterface/qt4/src/widgets/tqstatusbar.cpp index 6dbe4a4..75bbee8 100644 --- a/tqtinterface/qt4/src/widgets/tqstatusbar.cpp +++ b/tqtinterface/qt4/src/widgets/tqstatusbar.cpp @@ -47,7 +47,7 @@ #include "tqtimer.h" #include "tqdrawutil.h" #include "tqstyle.h" -#include "tqsizegrip.h" +#include "sizegrip.h" /*! \class TQStatusBar tqstatusbar.h @@ -312,7 +312,7 @@ void TQStatusBar::reformat() TQStatusBarPrivate::SBItem* item = d->items.first(); while ( item && !item->p ) { l->addWidget( item->w, item->s ); - int itemH = TQMIN(item->w->tqsizeHint().height(), + int itemH = TQMIN(item->w->sizeHint().height(), item->w->maximumHeight()); maxH = TQMAX( maxH, itemH ); item = d->items.next(); @@ -322,7 +322,7 @@ void TQStatusBar::reformat() while ( item ) { l->addWidget( item->w, item->s ); - int itemH = TQMIN(item->w->tqsizeHint().height(), + int itemH = TQMIN(item->w->sizeHint().height(), item->w->maximumHeight()); maxH = TQMAX( maxH, itemH ); item = d->items.next(); @@ -330,7 +330,7 @@ void TQStatusBar::reformat() l->addSpacing( 4 ); #ifndef TQT_NO_SIZEGRIP if ( d->resizer ) { - maxH = TQMAX( maxH, d->resizer->tqsizeHint().height() ); + maxH = TQMAX( maxH, d->resizer->sizeHint().height() ); d->box->addSpacing( 1 ); d->box->addWidget( d->resizer, 0, Qt::AlignBottom ); } @@ -496,7 +496,7 @@ bool TQStatusBar::event( TQEvent *e ) TQStatusBarPrivate::SBItem* item = d->items.first(); while ( item ) { - int itemH = TQMIN(item->w->tqsizeHint().height(), + int itemH = TQMIN(item->w->sizeHint().height(), item->w->maximumHeight()); maxH = TQMAX( maxH, itemH ); item = d->items.next(); @@ -504,7 +504,7 @@ bool TQStatusBar::event( TQEvent *e ) #ifndef TQT_NO_SIZEGRIP if ( d->resizer ) - maxH = TQMAX( maxH, d->resizer->tqsizeHint().height() ); + maxH = TQMAX( maxH, d->resizer->sizeHint().height() ); #endif if ( maxH != d->savedStrut ) diff --git a/tqtinterface/qt4/src/widgets/tqtabbar.cpp b/tqtinterface/qt4/src/widgets/tqtabbar.cpp index dd31f44..83329be 100644 --- a/tqtinterface/qt4/src/widgets/tqtabbar.cpp +++ b/tqtinterface/qt4/src/widgets/tqtabbar.cpp @@ -547,7 +547,7 @@ bool TQTabBar::isTabEnabled( int id ) const /*! \reimp */ -TQSize TQTabBar::tqsizeHint() const +TQSize TQTabBar::sizeHint() const { TQSize sz(0, 0); if ( TQTab * t = l->first() ) { @@ -566,8 +566,8 @@ TQSize TQTabBar::tqsizeHint() const TQSize TQTabBar::tqminimumSizeHint() const { if(tqstyle().tqstyleHint( TQStyle::SH_TabBar_PreferNoArrows, this )) - return tqsizeHint(); - return TQSize( d->rightB->tqsizeHint().width() * 2 + 75, tqsizeHint().height() ); + return sizeHint(); + return TQSize( d->rightB->sizeHint().width() * 2 + 75, sizeHint().height() ); } /*! @@ -576,7 +576,7 @@ TQSize TQTabBar::tqminimumSizeHint() const This virtual function may be reimplemented to change the look of TQTabBar. If you decide to reimplement it, you may also need to - reimplement tqsizeHint(). + reimplement sizeHint(). */ void TQTabBar::paint( TQPainter * p, TQTab * t, bool selected ) const @@ -1107,7 +1107,7 @@ void TQTabBar::layoutTabs() h = TQMAX( h, TQApplication::globalStrut().height() ); h += vframe; - t->r = TQRect(TQPoint(x, 0), tqstyle().tqsizeFromContents(TQStyle::CT_TabBarTab, this, + t->r = TQRect(TQPoint(x, 0), tqstyle().sizeFromContents(TQStyle::CT_TabBarTab, this, TQSize( TQMAX( lw + hframe + iw, TQApplication::globalStrut().width() ), h ), TQStyleOption(t) )); x += t->r.width() - overlap; @@ -1129,7 +1129,7 @@ void TQTabBar::layoutTabs() t->r.setHeight( r.height() ); } - if ( tqsizeHint() != oldSh ) + if ( sizeHint() != oldSh ) updateGeometry(); emit layoutChanged(); diff --git a/tqtinterface/qt4/src/widgets/tqtabbar.h b/tqtinterface/qt4/src/widgets/tqtabbar.h index 1b0fa76..89c9b9e 100644 --- a/tqtinterface/qt4/src/widgets/tqtabbar.h +++ b/tqtinterface/qt4/src/widgets/tqtabbar.h @@ -115,7 +115,7 @@ public: bool isTabEnabled( int ) const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; int currentTab() const; diff --git a/tqtinterface/qt4/src/widgets/tqtabwidget.cpp b/tqtinterface/qt4/src/widgets/tqtabwidget.cpp index 5fab113..a08e9a2 100644 --- a/tqtinterface/qt4/src/widgets/tqtabwidget.cpp +++ b/tqtinterface/qt4/src/widgets/tqtabwidget.cpp @@ -681,10 +681,10 @@ void TQTabWidget::setUpLayout( bool onlyCheck ) TQSize t( 0, d->stack->frameWidth() ); if ( d->tabs->isVisibleTo(this) ) - t = d->tabs->tqsizeHint(); + t = d->tabs->sizeHint(); int lcw = 0; if ( d->leftCornerWidget && d->leftCornerWidget->isVisible() ) { - TQSize sz = d->leftCornerWidget->tqsizeHint(); + TQSize sz = d->leftCornerWidget->sizeHint(); d->leftCornerWidget->resize(sz); lcw = sz.width(); if ( t.height() > lcw ) @@ -692,7 +692,7 @@ void TQTabWidget::setUpLayout( bool onlyCheck ) } int rcw = 0; if ( d->rightCornerWidget && d->rightCornerWidget->isVisible() ) { - TQSize sz = d->rightCornerWidget->tqsizeHint(); + TQSize sz = d->rightCornerWidget->sizeHint(); d->rightCornerWidget->resize(sz); rcw = sz.width(); if ( t.height() > rcw ) @@ -760,20 +760,20 @@ void TQTabWidget::setUpLayout( bool onlyCheck ) /*! \reimp */ -TQSize TQTabWidget::tqsizeHint() const +TQSize TQTabWidget::sizeHint() const { TQSize lc(0, 0), rc(0, 0); if (d->leftCornerWidget) - lc = d->leftCornerWidget->tqsizeHint(); + lc = d->leftCornerWidget->sizeHint(); if(d->rightCornerWidget) - rc = d->rightCornerWidget->tqsizeHint(); + rc = d->rightCornerWidget->sizeHint(); if ( !d->dirty ) { TQTabWidget *that = (TQTabWidget*)this; that->setUpLayout( TRUE ); } - TQSize s( d->stack->tqsizeHint() ); - TQSize t( d->tabs->tqsizeHint() ); + TQSize s( d->stack->sizeHint() ); + TQSize t( d->tabs->sizeHint() ); if(!tqstyle().tqstyleHint(TQStyle::SH_TabBar_PreferNoArrows, d->tabs)) t = t.boundedTo( TQSize(200,200) ); else @@ -781,7 +781,7 @@ TQSize TQTabWidget::tqsizeHint() const TQSize sz( TQMAX( s.width(), t.width() + rc.width() + lc.width() ), s.height() + (TQMAX( rc.height(), TQMAX(lc.height(), t.height()))) + ( d->tabBase->isVisible() ? d->tabBase->height() : 0 ) ); - return tqstyle().tqsizeFromContents(TQStyle::CT_TabWidget, this, sz).expandedTo(TQApplication::globalStrut()); + return tqstyle().sizeFromContents(TQStyle::CT_TabWidget, this, sz).expandedTo(TQApplication::globalStrut()); } @@ -807,7 +807,7 @@ TQSize TQTabWidget::tqminimumSizeHint() const TQSize sz( TQMAX( s.width(), t.width() + rc.width() + lc.width() ), s.height() + (TQMAX( rc.height(), TQMAX(lc.height(), t.height()))) + ( d->tabBase->isVisible() ? d->tabBase->height() : 0 ) ); - return tqstyle().tqsizeFromContents(TQStyle::CT_TabWidget, this, sz).expandedTo(TQApplication::globalStrut()); + return tqstyle().sizeFromContents(TQStyle::CT_TabWidget, this, sz).expandedTo(TQApplication::globalStrut()); } /*! diff --git a/tqtinterface/qt4/src/widgets/tqtabwidget.h b/tqtinterface/qt4/src/widgets/tqtabwidget.h index eb11988..5774160 100644 --- a/tqtinterface/qt4/src/widgets/tqtabwidget.h +++ b/tqtinterface/qt4/src/widgets/tqtabwidget.h @@ -107,7 +107,7 @@ public: int currentPageIndex() const; int indexOf( TQWidget * ) const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; enum TabPosition { Top, Bottom }; diff --git a/tqtinterface/qt4/src/widgets/tqtextedit.cpp b/tqtinterface/qt4/src/widgets/tqtextedit.cpp index 62c1d5f..90573bd 100644 --- a/tqtinterface/qt4/src/widgets/tqtextedit.cpp +++ b/tqtinterface/qt4/src/widgets/tqtextedit.cpp @@ -5446,9 +5446,9 @@ void TQTextEdit::setTabStopWidth( int ts ) \reimp */ -TQSize TQTextEdit::tqsizeHint() const +TQSize TQTextEdit::sizeHint() const { - // cf. TQScrollView::tqsizeHint() + // cf. TQScrollView::sizeHint() constPolish(); int f = 2 * frameWidth(); int h = fontMetrics().height(); diff --git a/tqtinterface/qt4/src/widgets/tqtextedit.h b/tqtinterface/qt4/src/widgets/tqtextedit.h index c78371e..48e0134 100644 --- a/tqtinterface/qt4/src/widgets/tqtextedit.h +++ b/tqtinterface/qt4/src/widgets/tqtextedit.h @@ -269,7 +269,7 @@ public: TQString anchorAt( const TQPoint& pos ); TQString anchorAt( const TQPoint& pos, Qt::AnchorAttribute a ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; bool isReadOnly() const { return readonly; } diff --git a/tqtinterface/qt4/src/widgets/tqtitlebar.cpp b/tqtinterface/qt4/src/widgets/tqtitlebar.cpp index ed7cd51..d9551f6 100644 --- a/tqtinterface/qt4/src/widgets/tqtitlebar.cpp +++ b/tqtinterface/qt4/src/widgets/tqtitlebar.cpp @@ -660,7 +660,7 @@ bool TQTitleBar::autoRaise() const return d->autoraise; } -TQSize TQTitleBar::tqsizeHint() const +TQSize TQTitleBar::sizeHint() const { constPolish(); TQRect menur = tqstyle().querySubControlMetrics(TQStyle::CC_TitleBar, this, diff --git a/tqtinterface/qt4/src/widgets/tqtitlebar_p.h b/tqtinterface/qt4/src/widgets/tqtitlebar_p.h index 44cac81..15e7ad8 100644 --- a/tqtinterface/qt4/src/widgets/tqtitlebar_p.h +++ b/tqtinterface/qt4/src/widgets/tqtitlebar_p.h @@ -89,7 +89,7 @@ public: TQWidget *window() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; #ifdef TQT_NO_WIDGET_TOPEXTRA // We provide one, since titlebar is useless otherwise. diff --git a/tqtinterface/qt4/src/widgets/tqtoolbar.cpp b/tqtinterface/qt4/src/widgets/tqtoolbar.cpp index 0701c6a..3def167 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbar.cpp +++ b/tqtinterface/qt4/src/widgets/tqtoolbar.cpp @@ -106,7 +106,7 @@ class TQToolBarSeparator : public TQWidget public: TQToolBarSeparator( Qt::Orientation, TQToolBar *tqparent, const char* name=0 ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; Qt::Orientation orientation() const { return orient; } public Q_SLOTS: void setOrientation( Qt::Orientation ); @@ -188,7 +188,7 @@ void TQToolBarSeparator::styleChange( TQStyle& ) setOrientation( orient ); } -TQSize TQToolBarSeparator::tqsizeHint() const +TQSize TQToolBarSeparator::sizeHint() const { int extent = tqstyle().tqpixelMetric( TQStyle::PM_DockWindowSeparatorExtent, this ); @@ -698,7 +698,7 @@ void TQToolBar::createPopup() cp->setItemChecked( i, TRUE ); if ( !maxItems ) { if ( cp->count() == 10 ) { - int h = cp->tqsizeHint().height(); + int h = cp->sizeHint().height(); maxItems = TQApplication::desktop()->height() * 10 / h; } } else if ( cp->count() >= maxItems - 1 ) { @@ -734,9 +734,9 @@ void TQToolBar::checkForExtension( const TQSize &sz ) bool tooSmall; if ( orientation() == Qt::Horizontal ) - tooSmall = sz.width() < tqsizeHint().width(); + tooSmall = sz.width() < sizeHint().width(); else - tooSmall = sz.height() < tqsizeHint().height(); + tooSmall = sz.height() < sizeHint().height(); if ( tooSmall ) { createPopup(); diff --git a/tqtinterface/qt4/src/widgets/tqtoolbox.cpp b/tqtinterface/qt4/src/widgets/tqtoolbox.cpp index 5950b1c..2a710b7 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqtoolbox.cpp @@ -132,7 +132,7 @@ void TQToolBoxPrivate::updateTabs() } } -TQSize TQToolBoxButton::tqsizeHint() const +TQSize TQToolBoxButton::sizeHint() const { TQSize iconSize(8, 8); if ( !icon.isNull() ) diff --git a/tqtinterface/qt4/src/widgets/tqtoolbox.h b/tqtinterface/qt4/src/widgets/tqtoolbox.h index 0ca8c38..d418b3c 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbox.h +++ b/tqtinterface/qt4/src/widgets/tqtoolbox.h @@ -145,7 +145,7 @@ public: inline void setIconSet( const TQIconSet &is ) { icon = is; update(); } inline TQIconSet iconSet() const { return icon; } - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; protected: diff --git a/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp b/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp index 2cfd962..d71110a 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp +++ b/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp @@ -309,7 +309,7 @@ void TQToolButton::setToggleButton( bool enable ) /*! \reimp */ -TQSize TQToolButton::tqsizeHint() const +TQSize TQToolButton::sizeHint() const { constPolish(); @@ -356,7 +356,7 @@ TQSize TQToolButton::tqsizeHint() const if ( popup() && ! popupDelay() ) w += tqstyle().tqpixelMetric(TQStyle::PM_MenuButtonIndicator, this); #endif - return (tqstyle().tqsizeFromContents(TQStyle::CT_ToolButton, this, TQSize(w, h)). + return (tqstyle().sizeFromContents(TQStyle::CT_ToolButton, this, TQSize(w, h)). expandedTo(TQApplication::globalStrut())); } @@ -365,7 +365,7 @@ TQSize TQToolButton::tqsizeHint() const */ TQSize TQToolButton::tqminimumSizeHint() const { - return tqsizeHint(); + return sizeHint(); } /*! @@ -918,32 +918,32 @@ void TQToolButton::popupTimerDone() TQRect screen = tqApp->desktop()->availableGeometry( this ); if ( horizontal ) { if ( TQApplication::reverseLayout() ) { - if ( mapToGlobal( TQPoint( 0, rect().bottom() ) ).y() + d->popup->tqsizeHint().height() <= screen.height() ) { + if ( mapToGlobal( TQPoint( 0, rect().bottom() ) ).y() + d->popup->sizeHint().height() <= screen.height() ) { p = mapToGlobal( rect().bottomRight() ); } else { - p = mapToGlobal( rect().topRight() - TQPoint( 0, d->popup->tqsizeHint().height() ) ); + p = mapToGlobal( rect().topRight() - TQPoint( 0, d->popup->sizeHint().height() ) ); } - p.rx() -= d->popup->tqsizeHint().width(); + p.rx() -= d->popup->sizeHint().width(); } else { - if ( mapToGlobal( TQPoint( 0, rect().bottom() ) ).y() + d->popup->tqsizeHint().height() <= screen.height() ) { + if ( mapToGlobal( TQPoint( 0, rect().bottom() ) ).y() + d->popup->sizeHint().height() <= screen.height() ) { p = mapToGlobal( rect().bottomLeft() ); } else { - p = mapToGlobal( rect().topLeft() - TQPoint( 0, d->popup->tqsizeHint().height() ) ); + p = mapToGlobal( rect().topLeft() - TQPoint( 0, d->popup->sizeHint().height() ) ); } } } else { if ( TQApplication::reverseLayout() ) { - if ( mapToGlobal( TQPoint( rect().left(), 0 ) ).x() - d->popup->tqsizeHint().width() <= screen.x() ) { + if ( mapToGlobal( TQPoint( rect().left(), 0 ) ).x() - d->popup->sizeHint().width() <= screen.x() ) { p = mapToGlobal( rect().topRight() ); } else { p = mapToGlobal( rect().topLeft() ); - p.rx() -= d->popup->tqsizeHint().width(); + p.rx() -= d->popup->sizeHint().width(); } } else { - if ( mapToGlobal( TQPoint( rect().right(), 0 ) ).x() + d->popup->tqsizeHint().width() <= screen.width() ) { + if ( mapToGlobal( TQPoint( rect().right(), 0 ) ).x() + d->popup->sizeHint().width() <= screen.width() ) { p = mapToGlobal( rect().topRight() ); } else { - p = mapToGlobal( rect().topLeft() - TQPoint( d->popup->tqsizeHint().width(), 0 ) ); + p = mapToGlobal( rect().topLeft() - TQPoint( d->popup->sizeHint().width(), 0 ) ); } } } diff --git a/tqtinterface/qt4/src/widgets/tqtoolbutton.h b/tqtinterface/qt4/src/widgets/tqtoolbutton.h index 3cdb9c0..0788a05 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbutton.h +++ b/tqtinterface/qt4/src/widgets/tqtoolbutton.h @@ -92,7 +92,7 @@ public: TQToolButton( TQt::ArrowType type, TQWidget *tqparent, const char* name=0 ); ~TQToolButton(); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; #ifndef TQT_NO_COMPAT diff --git a/tqtinterface/qt4/src/widgets/tqvbox.cpp b/tqtinterface/qt4/src/widgets/tqvbox.cpp index fbfba79..a47d561 100644 --- a/tqtinterface/qt4/src/widgets/tqvbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqvbox.cpp @@ -52,7 +52,7 @@ \ingroup organizers All its child widgets will be placed vertically and sized - according to their tqsizeHint()s. + according to their sizeHint()s. \img qvbox-m.png TQVBox diff --git a/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp b/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp index b9b576a..9310260 100644 --- a/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp +++ b/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp @@ -44,7 +44,7 @@ #include "tqframe.h" #include "tqapplication.h" #include "tqcursor.h" -#include "tqsizegrip.h" +#include "sizegrip.h" #if defined(TQ_WS_WIN) #include "tqt_windows.h" #endif diff --git a/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp b/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp index 4bf824e..cca8e9b 100644 --- a/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp +++ b/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp @@ -492,7 +492,7 @@ void TQWidgetStack::resizeEvent(TQResizeEvent * e) \reimp */ -TQSize TQWidgetStack::tqsizeHint() const +TQSize TQWidgetStack::sizeHint() const { constPolish(); @@ -503,10 +503,10 @@ TQSize TQWidgetStack::tqsizeHint() const while ((w = it.current()) != 0) { ++it; - TQSize sh = w->tqsizeHint(); - if (w->tqsizePolicy().horData() == QSizePolicy::Ignored) + TQSize sh = w->sizeHint(); + if (w->sizePolicy().horData() == QSizePolicy::Ignored) sh.rwidth() = 0; - if (w->tqsizePolicy().verData() == QSizePolicy::Ignored) + if (w->sizePolicy().verData() == QSizePolicy::Ignored) sh.rheight() = 0; #ifndef QT_NO_LAYOUT size = size.expandedTo(sh).expandedTo(tqSmartMinSize(w)); @@ -534,9 +534,9 @@ TQSize TQWidgetStack::tqminimumSizeHint() const while ((w = it.current()) != 0) { ++it; TQSize sh = w->tqminimumSizeHint(); - if (w->tqsizePolicy().horData() == QSizePolicy::Ignored) + if (w->sizePolicy().horData() == QSizePolicy::Ignored) sh.rwidth() = 0; - if (w->tqsizePolicy().verData() == QSizePolicy::Ignored) + if (w->sizePolicy().verData() == QSizePolicy::Ignored) sh.rheight() = 0; #ifndef QT_NO_LAYOUT size = size.expandedTo(sh).expandedTo(w->minimumSize()); @@ -1114,7 +1114,7 @@ void TQWidgetStack::resizeEvent( TQResizeEvent * e ) \reimp */ -TQSize TQWidgetStack::tqsizeHint() const +TQSize TQWidgetStack::sizeHint() const { constPolish(); @@ -1125,10 +1125,10 @@ TQSize TQWidgetStack::tqsizeHint() const while ( (w = it.current()) != 0 ) { ++it; - TQSize sh = w->tqsizeHint(); - if ( w->tqsizePolicy().horData() == TQSizePolicy::Ignored ) + TQSize sh = w->sizeHint(); + if ( w->sizePolicy().horData() == TQSizePolicy::Ignored ) sh.rwidth() = 0; - if ( w->tqsizePolicy().verData() == TQSizePolicy::Ignored ) + if ( w->sizePolicy().verData() == TQSizePolicy::Ignored ) sh.rheight() = 0; #ifndef TQT_NO_LAYOUT size = size.expandedTo( sh ).expandedTo( tqSmartMinSize(w) ); @@ -1156,9 +1156,9 @@ TQSize TQWidgetStack::tqminimumSizeHint() const while ( (w = it.current()) != 0 ) { ++it; TQSize sh = w->tqminimumSizeHint(); - if ( w->tqsizePolicy().horData() == TQSizePolicy::Ignored ) + if ( w->sizePolicy().horData() == TQSizePolicy::Ignored ) sh.rwidth() = 0; - if ( w->tqsizePolicy().verData() == TQSizePolicy::Ignored ) + if ( w->sizePolicy().verData() == TQSizePolicy::Ignored ) sh.rheight() = 0; #ifndef TQT_NO_LAYOUT size = size.expandedTo( sh ).expandedTo( w->tqminimumSize() ); diff --git a/tqtinterface/qt4/src/widgets/tqwidgetstack.h b/tqtinterface/qt4/src/widgets/tqwidgetstack.h index 5c0acfd..b0e0159 100644 --- a/tqtinterface/qt4/src/widgets/tqwidgetstack.h +++ b/tqtinterface/qt4/src/widgets/tqwidgetstack.h @@ -71,7 +71,7 @@ public: int addWidget(TQWidget *, int = -1); void removeWidget(TQWidget *); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; void setVisible(bool visible); @@ -186,7 +186,7 @@ public: int addWidget( TQWidget *, int = -1 ); void removeWidget( TQWidget * ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; void show(); diff --git a/tqtinterface/qt4/src/workspace/tqworkspace.cpp b/tqtinterface/qt4/src/workspace/tqworkspace.cpp index 164a670..a169090 100644 --- a/tqtinterface/qt4/src/workspace/tqworkspace.cpp +++ b/tqtinterface/qt4/src/workspace/tqworkspace.cpp @@ -161,7 +161,7 @@ public: void doResize(); void doMove(); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; TQSize baseSize() const; @@ -393,7 +393,7 @@ TQWorkspace::~TQWorkspace() } /*!\reimp */ -TQSize TQWorkspace::tqsizeHint() const +TQSize TQWorkspace::sizeHint() const { TQSize s( TQApplication::desktop()->size() ); return TQSize( s.width()*2/3, s.height()*2/3); @@ -2279,10 +2279,10 @@ TQSize TQWorkspaceChild::baseSize() const return TQSize( 2*frameWidth(), 2*frameWidth() + th ); } -TQSize TQWorkspaceChild::tqsizeHint() const +TQSize TQWorkspaceChild::sizeHint() const { if ( !childWidget ) - return TQFrame::tqsizeHint() + baseSize(); + return TQFrame::sizeHint() + baseSize(); TQSize prefSize = windowWidget()->sizeHint().expandedTo( windowWidget()->minimumSizeHint() ); prefSize = prefSize.expandedTo( windowWidget()->tqminimumSize() ).boundedTo( windowWidget()->tqmaximumSize() ); diff --git a/tqtinterface/qt4/src/workspace/tqworkspace.h b/tqtinterface/qt4/src/workspace/tqworkspace.h index 2b128ec..b1649c2 100644 --- a/tqtinterface/qt4/src/workspace/tqworkspace.h +++ b/tqtinterface/qt4/src/workspace/tqworkspace.h @@ -89,7 +89,7 @@ public: TQWidgetList windowList() const; // ### merge with below in 4.0 TQWidgetList windowList( WindowOrder order ) const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; bool scrollBarsEnabled() const; void setScrollBarsEnabled( bool enable ); diff --git a/tqtinterface/qt4/tools/assistant/finddialog.ui b/tqtinterface/qt4/tools/assistant/finddialog.ui index 56fd582..b5df98a 100644 --- a/tqtinterface/qt4/tools/assistant/finddialog.ui +++ b/tqtinterface/qt4/tools/assistant/finddialog.ui @@ -165,7 +165,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>31</width> <height>0</height> diff --git a/tqtinterface/qt4/tools/assistant/helpdialog.ui b/tqtinterface/qt4/tools/assistant/helpdialog.ui index 3f61572..2fdc116 100644 --- a/tqtinterface/qt4/tools/assistant/helpdialog.ui +++ b/tqtinterface/qt4/tools/assistant/helpdialog.ui @@ -217,7 +217,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -283,7 +283,7 @@ <property name="sizeType"> <enum>Fixed</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -363,7 +363,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>61</width> <height>21</height> diff --git a/tqtinterface/qt4/tools/assistant/settingsdialog.ui b/tqtinterface/qt4/tools/assistant/settingsdialog.ui index f2ae9b2..5b12862 100644 --- a/tqtinterface/qt4/tools/assistant/settingsdialog.ui +++ b/tqtinterface/qt4/tools/assistant/settingsdialog.ui @@ -215,7 +215,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>30</height> @@ -352,7 +352,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>81</height> @@ -417,7 +417,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>0</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/assistant/topicchooser.ui b/tqtinterface/qt4/tools/assistant/topicchooser.ui index 364e23f..2780e9e 100644 --- a/tqtinterface/qt4/tools/assistant/topicchooser.ui +++ b/tqtinterface/qt4/tools/assistant/topicchooser.ui @@ -106,7 +106,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/about.ui b/tqtinterface/qt4/tools/designer/designer/about.ui index db2e11b..0f9126a 100644 --- a/tqtinterface/qt4/tools/designer/designer/about.ui +++ b/tqtinterface/qt4/tools/designer/designer/about.ui @@ -136,7 +136,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -167,7 +167,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -198,7 +198,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/actiondnd.cpp b/tqtinterface/qt4/tools/designer/designer/actiondnd.cpp index d52fad4..509e743 100644 --- a/tqtinterface/qt4/tools/designer/designer/actiondnd.cpp +++ b/tqtinterface/qt4/tools/designer/designer/actiondnd.cpp @@ -170,7 +170,7 @@ void TQDesignerToolBarSeparator::styleChange( TQStyle& ) setOrientation( orient ); } -TQSize TQDesignerToolBarSeparator::tqsizeHint() const +TQSize TQDesignerToolBarSeparator::sizeHint() const { int extent = tqstyle().tqpixelMetric( TQStyle::PM_DockWindowSeparatorExtent, this ); diff --git a/tqtinterface/qt4/tools/designer/designer/actiondnd.h b/tqtinterface/qt4/tools/designer/designer/actiondnd.h index adde1b4..6aeb7f4 100644 --- a/tqtinterface/qt4/tools/designer/designer/actiondnd.h +++ b/tqtinterface/qt4/tools/designer/designer/actiondnd.h @@ -154,7 +154,7 @@ class TQDesignerToolBarSeparator : public TQWidget public: TQDesignerToolBarSeparator( Qt::Orientation, TQToolBar *tqparent, const char* name=0 ); - TQSize tqsizeHint() const; + TQSize sizeHint() const; Qt::Orientation orientation() const { return orient; } public Q_SLOTS: void setOrientation( Qt::Orientation ); diff --git a/tqtinterface/qt4/tools/designer/designer/actioneditor.ui b/tqtinterface/qt4/tools/designer/designer/actioneditor.ui index ce3f105..4ce7983 100644 --- a/tqtinterface/qt4/tools/designer/designer/actioneditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/actioneditor.ui @@ -134,7 +134,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/configtoolboxdialog.ui b/tqtinterface/qt4/tools/designer/designer/configtoolboxdialog.ui index e3911bd..9b9eedc 100644 --- a/tqtinterface/qt4/tools/designer/designer/configtoolboxdialog.ui +++ b/tqtinterface/qt4/tools/designer/designer/configtoolboxdialog.ui @@ -69,7 +69,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>342</width> <height>0</height> @@ -126,7 +126,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>111</width> <height>0</height> @@ -222,7 +222,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>41</width> <height>0</height> diff --git a/tqtinterface/qt4/tools/designer/designer/connectiondialog.ui b/tqtinterface/qt4/tools/designer/designer/connectiondialog.ui index 8497775..b16c791 100644 --- a/tqtinterface/qt4/tools/designer/designer/connectiondialog.ui +++ b/tqtinterface/qt4/tools/designer/designer/connectiondialog.ui @@ -121,7 +121,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/createtemplate.ui b/tqtinterface/qt4/tools/designer/designer/createtemplate.ui index 322fabc..4ad9259 100644 --- a/tqtinterface/qt4/tools/designer/designer/createtemplate.ui +++ b/tqtinterface/qt4/tools/designer/designer/createtemplate.ui @@ -138,7 +138,7 @@ <enum>Expanding</enum> </property> <property> - <name>tqsizeHint</name> + <name>sizeHint</name> <size> <width>20</width> <height>20</height> @@ -210,7 +210,7 @@ <enum>Expanding</enum> </property> <property> - <name>tqsizeHint</name> + <name>sizeHint</name> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/customwidgeteditor.ui b/tqtinterface/qt4/tools/designer/designer/customwidgeteditor.ui index f5d5a01..2044d3a 100644 --- a/tqtinterface/qt4/tools/designer/designer/customwidgeteditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/customwidgeteditor.ui @@ -134,7 +134,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -167,7 +167,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -534,7 +534,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -607,7 +607,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -821,7 +821,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -907,7 +907,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/customwidgeteditorimpl.cpp b/tqtinterface/qt4/tools/designer/designer/customwidgeteditorimpl.cpp index 91531c3..c5d9d94 100644 --- a/tqtinterface/qt4/tools/designer/designer/customwidgeteditorimpl.cpp +++ b/tqtinterface/qt4/tools/designer/designer/customwidgeteditorimpl.cpp @@ -202,8 +202,8 @@ void CustomWidgetEditor::currentWidgetChanged( TQListBoxItem *i ) previewPixmap->setPixmap( *w->pixmap ); else previewPixmap->setText( "" ); - spinWidth->setValue( w->tqsizeHint.width() ); - spinHeight->setValue( w->tqsizeHint.height() ); + spinWidth->setValue( w->sizeHint.width() ); + spinHeight->setValue( w->sizeHint.height() ); sizeHor->setCurrentItem( size_type_to_int( w->sizePolicy.horData() ) ); sizeVer->setCurrentItem( size_type_to_int( w->sizePolicy.verData() ) ); checkContainer->setChecked( w->isContainer ); @@ -313,7 +313,7 @@ void CustomWidgetEditor::heightChanged( int h ) if ( !i || !w ) return; - w->tqsizeHint.setHeight( h ); + w->sizeHint.setHeight( h ); updateCustomWidgetSizes(); } @@ -357,7 +357,7 @@ void CustomWidgetEditor::widthChanged( int wid ) if ( !i || !w ) return; - w->tqsizeHint.setWidth( wid ); + w->sizeHint.setWidth( wid ); updateCustomWidgetSizes(); } @@ -713,8 +713,8 @@ void CustomWidgetEditor::saveDescription() << "\">" << w->includeFile << "</header>" << endl; ts << makeIndent2( indent ) << "<sizehint>" << endl; indent++; - ts << makeIndent2( indent ) << "<width>" << w->tqsizeHint.width() << "</width>" << endl; - ts << makeIndent2( indent ) << "<height>" << w->tqsizeHint.height() << "</height>" << endl; + ts << makeIndent2( indent ) << "<width>" << w->sizeHint.width() << "</width>" << endl; + ts << makeIndent2( indent ) << "<height>" << w->sizeHint.height() << "</height>" << endl; indent--; ts << makeIndent2( indent ) << "</sizehint>" << endl; ts << makeIndent2( indent ) << "<container>" << (int)w->isContainer << "</container>" << endl; diff --git a/tqtinterface/qt4/tools/designer/designer/dbconnectioneditor.ui b/tqtinterface/qt4/tools/designer/designer/dbconnectioneditor.ui index 9e12f4e..bb16593 100644 --- a/tqtinterface/qt4/tools/designer/designer/dbconnectioneditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/dbconnectioneditor.ui @@ -86,7 +86,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -120,7 +120,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/dbconnections.ui b/tqtinterface/qt4/tools/designer/designer/dbconnections.ui index 1bf7426..a1ff91b 100644 --- a/tqtinterface/qt4/tools/designer/designer/dbconnections.ui +++ b/tqtinterface/qt4/tools/designer/designer/dbconnections.ui @@ -116,7 +116,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -149,7 +149,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -183,7 +183,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -216,7 +216,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -244,7 +244,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -263,7 +263,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/defs.h b/tqtinterface/qt4/tools/designer/designer/defs.h index b6560d1..fb06317 100644 --- a/tqtinterface/qt4/tools/designer/designer/defs.h +++ b/tqtinterface/qt4/tools/designer/designer/defs.h @@ -34,7 +34,7 @@ #ifndef DEFS_H #define DEFS_H -#include <tqsizepolicy.h> +#include <sizepolicy.h> #include <tqstring.h> #define POINTER_TOOL 32000 diff --git a/tqtinterface/qt4/tools/designer/designer/editfunctions.ui b/tqtinterface/qt4/tools/designer/designer/editfunctions.ui index 5d95587..5250f54 100644 --- a/tqtinterface/qt4/tools/designer/designer/editfunctions.ui +++ b/tqtinterface/qt4/tools/designer/designer/editfunctions.ui @@ -196,7 +196,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -361,7 +361,7 @@ <property name="sizeType"> <enum>Fixed</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>16</height> @@ -525,7 +525,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -573,7 +573,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/finddialog.ui b/tqtinterface/qt4/tools/designer/designer/finddialog.ui index 1c0f39f..44b4435 100644 --- a/tqtinterface/qt4/tools/designer/designer/finddialog.ui +++ b/tqtinterface/qt4/tools/designer/designer/finddialog.ui @@ -124,7 +124,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/formwindow.cpp b/tqtinterface/qt4/tools/designer/designer/formwindow.cpp index 0b102e9..e19d0ca 100644 --- a/tqtinterface/qt4/tools/designer/designer/formwindow.cpp +++ b/tqtinterface/qt4/tools/designer/designer/formwindow.cpp @@ -65,7 +65,7 @@ #include <tqpalette.h> #include <tqmessagebox.h> #include <tqpopupmenu.h> -#include <tqsizegrip.h> +#include <sizegrip.h> #include <tqpushbutton.h> #include <tqwhatsthis.h> #include <tqmetaobject.h> @@ -414,8 +414,8 @@ void FormWindow::insertWidget() r.setHeight( 20 ); } } else { - r.setWidth( w->tqsizeHint().width() ); - r.setHeight( w->tqsizeHint().height() ); + r.setWidth( w->sizeHint().width() ); + r.setHeight( w->sizeHint().height() ); } } diff --git a/tqtinterface/qt4/tools/designer/designer/gotolinedialog.ui b/tqtinterface/qt4/tools/designer/designer/gotolinedialog.ui index 329ca8f..50700e9 100644 --- a/tqtinterface/qt4/tools/designer/designer/gotolinedialog.ui +++ b/tqtinterface/qt4/tools/designer/designer/gotolinedialog.ui @@ -108,7 +108,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -146,7 +146,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/iconvieweditor.ui b/tqtinterface/qt4/tools/designer/designer/iconvieweditor.ui index 325678d..8c9119e 100644 --- a/tqtinterface/qt4/tools/designer/designer/iconvieweditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/iconvieweditor.ui @@ -137,7 +137,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -316,7 +316,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/layout.cpp b/tqtinterface/qt4/tools/designer/designer/layout.cpp index acb6766..e8266c3 100644 --- a/tqtinterface/qt4/tools/designer/designer/layout.cpp +++ b/tqtinterface/qt4/tools/designer/designer/layout.cpp @@ -950,8 +950,8 @@ void Spacer::setSizeType( SizeType t ) Spacer::SizeType Spacer::sizeType() const { if ( orient == Qt::Vertical ) - return (SizeType)tqsizePolicy().verData(); - return (SizeType)tqsizePolicy().horData(); + return (SizeType)sizePolicy().verData(); + return (SizeType)sizePolicy().horData(); } int Spacer::tqalignment() const @@ -972,7 +972,7 @@ TQSize Spacer::tqminimumSize() const return s; } -TQSize Spacer::tqsizeHint() const +TQSize Spacer::sizeHint() const { return sh; } @@ -982,7 +982,7 @@ void Spacer::setSizeHint( const TQSize &s ) { sh = s; if ( !parentWidget() || WidgetFactory::layoutType( parentWidget() ) == WidgetFactory::NoLayout ) - resize( tqsizeHint() ); + resize( sizeHint() ); updateGeometry(); } diff --git a/tqtinterface/qt4/tools/designer/designer/layout.h b/tqtinterface/qt4/tools/designer/designer/layout.h index 3b07fcc..1b6821d 100644 --- a/tqtinterface/qt4/tools/designer/designer/layout.h +++ b/tqtinterface/qt4/tools/designer/designer/layout.h @@ -132,7 +132,7 @@ class Spacer : public TQWidget Q_PROPERTY( Qt::Orientation orientation READ orientation WRITE setOrientation ) TQ_ENUMS( SizeType ) Q_PROPERTY( SizeType sizeType READ sizeType WRITE setSizeType ) - Q_PROPERTY( TQSize tqsizeHint READ tqsizeHint WRITE setSizeHint DESIGNABLE true STORED true ) + Q_PROPERTY( TQSize sizeHint READ sizeHint WRITE setSizeHint DESIGNABLE true STORED true ) TQ_OVERRIDE( TQRect tqgeometry DESIGNABLE false ) private: @@ -150,7 +150,7 @@ public: Spacer( TQWidget *tqparent, const char *name ); TQSize tqminimumSize() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; void setSizeType( SizeType t ); SizeType sizeType() const; int tqalignment() const; diff --git a/tqtinterface/qt4/tools/designer/designer/listboxeditor.ui b/tqtinterface/qt4/tools/designer/designer/listboxeditor.ui index 78e06c5..714d7da 100644 --- a/tqtinterface/qt4/tools/designer/designer/listboxeditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/listboxeditor.ui @@ -98,7 +98,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -310,7 +310,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/listeditor.ui b/tqtinterface/qt4/tools/designer/designer/listeditor.ui index f1e3d2a..baa6b0c 100644 --- a/tqtinterface/qt4/tools/designer/designer/listeditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/listeditor.ui @@ -121,7 +121,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/listvieweditor.ui b/tqtinterface/qt4/tools/designer/designer/listvieweditor.ui index 049d7c7..75b912e 100644 --- a/tqtinterface/qt4/tools/designer/designer/listvieweditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/listvieweditor.ui @@ -299,7 +299,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -604,7 +604,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -649,7 +649,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/mainwindow.cpp b/tqtinterface/qt4/tools/designer/designer/mainwindow.cpp index def15eb..5a78cce 100644 --- a/tqtinterface/qt4/tools/designer/designer/mainwindow.cpp +++ b/tqtinterface/qt4/tools/designer/designer/mainwindow.cpp @@ -115,7 +115,7 @@ #include <tqsettings.h> #include <tqaccel.h> #include <tqtooltip.h> -#include <tqsizegrip.h> +#include <sizegrip.h> #include <tqtextview.h> #include <tqassistantclient.h> #include <stdlib.h> @@ -2216,8 +2216,8 @@ void MainWindow::writeConfig() l << w->className; l << w->includeFile; l << TQString::number( (int)w->includePolicy ); - l << TQString::number( w->tqsizeHint.width() ); - l << TQString::number( w->tqsizeHint.height() ); + l << TQString::number( w->sizeHint.width() ); + l << TQString::number( w->sizeHint.height() ); l << TQString::number( w->lstSignals.count() ); for ( TQValueList<TQCString>::ConstIterator it = w->lstSignals.begin(); it != w->lstSignals.end(); ++it ) l << TQString( fixArgs( *it ) ); @@ -2356,8 +2356,8 @@ void MainWindow::readConfig() w->className = l[ 0 ]; w->includeFile = l[ 1 ]; w->includePolicy = (MetaDataBase::CustomWidget::IncludePolicy)l[ 2 ].toInt(); - w->tqsizeHint.setWidth( l[ 3 ].toInt() ); - w->tqsizeHint.setHeight( l[ 4 ].toInt() ); + w->sizeHint.setWidth( l[ 3 ].toInt() ); + w->sizeHint.setHeight( l[ 4 ].toInt() ); uint c = 5; if ( l.count() > c ) { int numSignals = l[ c ].toInt(); diff --git a/tqtinterface/qt4/tools/designer/designer/menubareditor.cpp b/tqtinterface/qt4/tools/designer/designer/menubareditor.cpp index 1bfc825..5993636 100644 --- a/tqtinterface/qt4/tools/designer/designer/menubareditor.cpp +++ b/tqtinterface/qt4/tools/designer/designer/menubareditor.cpp @@ -507,7 +507,7 @@ void MenuBarEditor::deleteItem( int index ) } } -TQSize MenuBarEditor::tqsizeHint() const +TQSize MenuBarEditor::sizeHint() const { return TQSize( parentWidget()->width(), heightForWidth( parentWidget()->width() ) ); } @@ -581,7 +581,7 @@ bool MenuBarEditor::eventFilter( TQObject * o, TQEvent * e ) lineEdit->hide(); update(); } else if ( e->type() == TQEvent::LayoutHint ) { - resize( tqsizeHint() ); + resize( sizeHint() ); } return TQMenuBar::eventFilter( o, e ); } diff --git a/tqtinterface/qt4/tools/designer/designer/menubareditor.h b/tqtinterface/qt4/tools/designer/designer/menubareditor.h index 913f0a8..c6e63f1 100644 --- a/tqtinterface/qt4/tools/designer/designer/menubareditor.h +++ b/tqtinterface/qt4/tools/designer/designer/menubareditor.h @@ -127,9 +127,9 @@ public: void focusItem( int index = -1 ); void deleteItem( int index = -1 ); - TQSize tqsizeHint() const; - TQSize tqminimumSize() const { return tqsizeHint(); } - TQSize tqminimumSizeHint() const { return tqsizeHint(); } + TQSize sizeHint() const; + TQSize tqminimumSize() const { return sizeHint(); } + TQSize tqminimumSizeHint() const { return sizeHint(); } int heightForWidth( int max_width ) const; void show(); diff --git a/tqtinterface/qt4/tools/designer/designer/metadatabase.cpp b/tqtinterface/qt4/tools/designer/designer/metadatabase.cpp index 501e6cc..5bb9b30 100644 --- a/tqtinterface/qt4/tools/designer/designer/metadatabase.cpp +++ b/tqtinterface/qt4/tools/designer/designer/metadatabase.cpp @@ -1278,7 +1278,7 @@ MetaDataBase::CustomWidget::CustomWidget() className = "MyCustomWidget"; includeFile = "mywidget.h"; includePolicy = Local; - tqsizeHint = TQSize( -1, -1 ); + sizeHint = TQSize( -1, -1 ); pixmap = new TQPixmap( TQPixmap::fromMimeSource( "designer_customwidget.png" ) ); id = -1; sizePolicy = TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Preferred ); @@ -1290,7 +1290,7 @@ MetaDataBase::CustomWidget::CustomWidget( const CustomWidget &w ) className = w.className; includeFile = w.includeFile; includePolicy = w.includePolicy; - tqsizeHint = w.tqsizeHint; + sizeHint = w.sizeHint; if ( w.pixmap ) pixmap = new TQPixmap( *w.pixmap ); else @@ -1341,7 +1341,7 @@ MetaDataBase::CustomWidget &MetaDataBase::CustomWidget::operator=( const CustomW className = w.className; includeFile = w.includeFile; includePolicy = w.includePolicy; - tqsizeHint = w.tqsizeHint; + sizeHint = w.sizeHint; if ( w.pixmap ) pixmap = new TQPixmap( *w.pixmap ); else diff --git a/tqtinterface/qt4/tools/designer/designer/metadatabase.h b/tqtinterface/qt4/tools/designer/designer/metadatabase.h index 08e01f5..4f12bac 100644 --- a/tqtinterface/qt4/tools/designer/designer/metadatabase.h +++ b/tqtinterface/qt4/tools/designer/designer/metadatabase.h @@ -39,7 +39,7 @@ #include <tqstringlist.h> #include <tqmap.h> #include <tqptrlist.h> -#include <tqsizepolicy.h> +#include <sizepolicy.h> #include <tqsize.h> #include <tqwidgetlist.h> #include <tqcursor.h> @@ -109,7 +109,7 @@ public: TQString className; TQString includeFile; IncludePolicy includePolicy; - TQSize tqsizeHint; + TQSize sizeHint; TQSizePolicy sizePolicy; TQPixmap *pixmap; TQValueList<TQCString> lstSignals; diff --git a/tqtinterface/qt4/tools/designer/designer/multilineeditor.ui b/tqtinterface/qt4/tools/designer/designer/multilineeditor.ui index 87d4603..9e7aa1d 100644 --- a/tqtinterface/qt4/tools/designer/designer/multilineeditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/multilineeditor.ui @@ -131,7 +131,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/newform.ui b/tqtinterface/qt4/tools/designer/designer/newform.ui index ea28f3c..4b33a96 100644 --- a/tqtinterface/qt4/tools/designer/designer/newform.ui +++ b/tqtinterface/qt4/tools/designer/designer/newform.ui @@ -98,7 +98,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -184,7 +184,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/paletteeditor.ui b/tqtinterface/qt4/tools/designer/designer/paletteeditor.ui index 36dbd59..41cfd9e 100644 --- a/tqtinterface/qt4/tools/designer/designer/paletteeditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/paletteeditor.ui @@ -215,7 +215,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -350,7 +350,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/paletteeditoradvanced.ui b/tqtinterface/qt4/tools/designer/designer/paletteeditoradvanced.ui index c869d97..5cdf667 100644 --- a/tqtinterface/qt4/tools/designer/designer/paletteeditoradvanced.ui +++ b/tqtinterface/qt4/tools/designer/designer/paletteeditoradvanced.ui @@ -273,7 +273,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -480,7 +480,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -572,7 +572,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/pixmapcollectioneditor.ui b/tqtinterface/qt4/tools/designer/designer/pixmapcollectioneditor.ui index 59c50b9..1f2195c 100644 --- a/tqtinterface/qt4/tools/designer/designer/pixmapcollectioneditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/pixmapcollectioneditor.ui @@ -108,7 +108,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/pixmapfunction.ui b/tqtinterface/qt4/tools/designer/designer/pixmapfunction.ui index c456633..b46b689 100644 --- a/tqtinterface/qt4/tools/designer/designer/pixmapfunction.ui +++ b/tqtinterface/qt4/tools/designer/designer/pixmapfunction.ui @@ -824,7 +824,7 @@ <enum>Expanding</enum> </property> <property> - <name>tqsizeHint</name> + <name>sizeHint</name> <size> <width>20</width> <height>20</height> @@ -875,7 +875,7 @@ <enum>Expanding</enum> </property> <property> - <name>tqsizeHint</name> + <name>sizeHint</name> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/preferences.ui b/tqtinterface/qt4/tools/designer/designer/preferences.ui index 51f17b3..81cf37b 100644 --- a/tqtinterface/qt4/tools/designer/designer/preferences.ui +++ b/tqtinterface/qt4/tools/designer/designer/preferences.ui @@ -166,7 +166,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -541,7 +541,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/previewwidget.ui b/tqtinterface/qt4/tools/designer/designer/previewwidget.ui index 6ecba7b..5ad8ed0 100644 --- a/tqtinterface/qt4/tools/designer/designer/previewwidget.ui +++ b/tqtinterface/qt4/tools/designer/designer/previewwidget.ui @@ -295,7 +295,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/projectsettings.ui b/tqtinterface/qt4/tools/designer/designer/projectsettings.ui index 284f554..7ca6718 100644 --- a/tqtinterface/qt4/tools/designer/designer/projectsettings.ui +++ b/tqtinterface/qt4/tools/designer/designer/projectsettings.ui @@ -168,7 +168,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>21</width> <height>71</height> @@ -213,7 +213,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/propertyeditor.cpp b/tqtinterface/qt4/tools/designer/designer/propertyeditor.cpp index c74d2a3..a425e06 100644 --- a/tqtinterface/qt4/tools/designer/designer/propertyeditor.cpp +++ b/tqtinterface/qt4/tools/designer/designer/propertyeditor.cpp @@ -71,7 +71,7 @@ #include <tqcolordialog.h> #include <tqlabel.h> #include <tqlayout.h> -#include <tqsizepolicy.h> +#include <sizepolicy.h> #include <tqbitmap.h> #include <tqtooltip.h> #include <tqwhatsthis.h> @@ -411,7 +411,7 @@ void PropertyItem::createResetButton() resetButton = new TQPushButton( hbox ); setupStyle( resetButton ); resetButton->setPixmap( TQPixmap::fromMimeSource( "designer_resetproperty.png" ) ); - resetButton->setFixedWidth( resetButton->tqsizeHint().width() ); + resetButton->setFixedWidth( resetButton->sizeHint().width() ); hbox->tqlayout()->tqsetAlignment( TQt::AlignRight ); listview->addChild( hbox ); hbox->hide(); @@ -453,7 +453,7 @@ void PropertyItem::placeEditor( TQWidget *w ) r = TQRect( listview->viewportToContents( r.topLeft() ), r.size() ); w->resize( r.size() ); listview->moveChild( w, r.x(), r.y() ); - resetButton->parentWidget()->resize( resetButton->tqsizeHint().width() + 10, r.height() ); + resetButton->parentWidget()->resize( resetButton->sizeHint().width() + 10, r.height() ); listview->moveChild( resetButton->parentWidget(), r.x() + r.width() - 8, r.y() ); resetButton->setFixedHeight( TQMAX( 0, r.height() - 3 ) ); } diff --git a/tqtinterface/qt4/tools/designer/designer/qcompletionedit.cpp b/tqtinterface/qt4/tools/designer/designer/qcompletionedit.cpp index 6c19964..130fe9c 100644 --- a/tqtinterface/qt4/tools/designer/designer/qcompletionedit.cpp +++ b/tqtinterface/qt4/tools/designer/designer/qcompletionedit.cpp @@ -33,7 +33,7 @@ #include "qcompletionedit.h" #include <tqlistbox.h> -#include <tqsizegrip.h> +#include <sizegrip.h> #include <tqapplication.h> #include <tqvbox.h> @@ -95,8 +95,8 @@ void TQCompletionEdit::placeListBox() return; } - popup->resize( TQMAX( listbox->tqsizeHint().width() + listbox->verticalScrollBar()->width() + 4, width() ), - listbox->tqsizeHint().height() + listbox->horizontalScrollBar()->height() + 4 ); + popup->resize( TQMAX( listbox->sizeHint().width() + listbox->verticalScrollBar()->width() + 4, width() ), + listbox->sizeHint().height() + listbox->horizontalScrollBar()->height() + 4 ); TQPoint p( mapToGlobal( TQPoint( 0, 0 ) ) ); if ( p.y() + height() + popup->height() <= TQApplication::desktop()->height() ) diff --git a/tqtinterface/qt4/tools/designer/designer/replacedialog.ui b/tqtinterface/qt4/tools/designer/designer/replacedialog.ui index a2a33af..68404e6 100644 --- a/tqtinterface/qt4/tools/designer/designer/replacedialog.ui +++ b/tqtinterface/qt4/tools/designer/designer/replacedialog.ui @@ -151,7 +151,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/resource.cpp b/tqtinterface/qt4/tools/designer/designer/resource.cpp index 053c155..2978c10 100644 --- a/tqtinterface/qt4/tools/designer/designer/resource.cpp +++ b/tqtinterface/qt4/tools/designer/designer/resource.cpp @@ -629,7 +629,7 @@ bool Resource::load( FormFile *ff, TQIODevice* dev, Project *defProject ) formwindow->resize( formwindow->size().expandedTo( formwindow->tqminimumSize(). expandedTo( formwindow->tqminimumSizeHint() ) ) ); else - formwindow->resize( formwindow->size().expandedTo( formwindow->tqsizeHint() ) ); + formwindow->resize( formwindow->size().expandedTo( formwindow->sizeHint() ) ); } return TRUE; @@ -1424,8 +1424,8 @@ void Resource::saveObjectProperties( TQT_BASE_OBJECT_NAME *bobj, TQTextStream &t changed = MetaDataBase::changedProperties( w ); if ( w->isWidgetType() ) { if ( ::tqqt_cast<Spacer*>(w) ) { - if ( !changed.tqcontains( "tqsizeHint" ) ) - changed << "tqsizeHint"; + if ( !changed.tqcontains( "sizeHint" ) ) + changed << "sizeHint"; if ( !changed.tqcontains( "geometry" ) ) changed << "geometry"; } else { @@ -2630,8 +2630,8 @@ void Resource::saveCustomWidgets( TQTextStream &ts, int indent ) << "\">" << w->includeFile << "</header>" << endl; ts << makeIndent( indent ) << "<sizehint>" << endl; indent++; - ts << makeIndent( indent ) << "<width>" << w->tqsizeHint.width() << "</width>" << endl; - ts << makeIndent( indent ) << "<height>" << w->tqsizeHint.height() << "</height>" << endl; + ts << makeIndent( indent ) << "<width>" << w->sizeHint.width() << "</width>" << endl; + ts << makeIndent( indent ) << "<height>" << w->sizeHint.height() << "</height>" << endl; indent--; ts << makeIndent( indent ) << "</sizehint>" << endl; ts << makeIndent( indent ) << "<container>" << (int)w->isContainer << "</container>" << endl; @@ -2687,9 +2687,9 @@ void Resource::loadCustomWidgets( const TQDomElement &e, Resource *r ) TQDomElement n3 = n2.firstChild().toElement(); while ( !n3.isNull() ) { if ( n3.tagName() == "width" ) - w->tqsizeHint.setWidth( n3.firstChild().toText().data().toInt() ); + w->sizeHint.setWidth( n3.firstChild().toText().data().toInt() ); else if ( n3.tagName() == "height" ) - w->tqsizeHint.setHeight( n3.firstChild().toText().data().toInt() ); + w->sizeHint.setHeight( n3.firstChild().toText().data().toInt() ); n3 = n3.nextSibling().toElement(); } } else if ( n2.tagName() == "sizepolicy" ) { diff --git a/tqtinterface/qt4/tools/designer/designer/richtextfontdialog.ui b/tqtinterface/qt4/tools/designer/designer/richtextfontdialog.ui index bfa704b..b0edaeb 100644 --- a/tqtinterface/qt4/tools/designer/designer/richtextfontdialog.ui +++ b/tqtinterface/qt4/tools/designer/designer/richtextfontdialog.ui @@ -116,7 +116,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -234,7 +234,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>16</height> @@ -279,7 +279,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/sizehandle.cpp b/tqtinterface/qt4/tools/designer/designer/sizehandle.cpp index f0c6ef3..76743d6 100644 --- a/tqtinterface/qt4/tools/designer/designer/sizehandle.cpp +++ b/tqtinterface/qt4/tools/designer/designer/sizehandle.cpp @@ -64,28 +64,28 @@ void SizeHandle::updateCursor() switch ( dir ) { case LeftTop: - setCursor( tqsizeFDiagCursor ); + setCursor( sizeFDiagCursor ); break; case Top: - setCursor( tqsizeVerCursor ); + setCursor( sizeVerCursor ); break; case RightTop: - setCursor( tqsizeBDiagCursor ); + setCursor( sizeBDiagCursor ); break; case Right: - setCursor( tqsizeHorCursor ); + setCursor( sizeHorCursor ); break; case RightBottom: - setCursor( tqsizeFDiagCursor ); + setCursor( sizeFDiagCursor ); break; case Bottom: - setCursor( tqsizeVerCursor ); + setCursor( sizeVerCursor ); break; case LeftBottom: - setCursor( tqsizeBDiagCursor ); + setCursor( sizeBDiagCursor ); break; case Left: - setCursor( tqsizeHorCursor ); + setCursor( sizeHorCursor ); break; } } diff --git a/tqtinterface/qt4/tools/designer/designer/startdialog.ui b/tqtinterface/qt4/tools/designer/designer/startdialog.ui index 531e7ac..5c8b9df 100644 --- a/tqtinterface/qt4/tools/designer/designer/startdialog.ui +++ b/tqtinterface/qt4/tools/designer/designer/startdialog.ui @@ -223,7 +223,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>0</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/styledbutton.cpp b/tqtinterface/qt4/tools/designer/designer/styledbutton.cpp index c2419c3..90e672c 100644 --- a/tqtinterface/qt4/tools/designer/designer/styledbutton.cpp +++ b/tqtinterface/qt4/tools/designer/designer/styledbutton.cpp @@ -124,7 +124,7 @@ void StyledButton::setScale( bool on ) scalePixmap(); } -TQSize StyledButton::tqsizeHint() const +TQSize StyledButton::sizeHint() const { return TQSize( 50, 25 ); } diff --git a/tqtinterface/qt4/tools/designer/designer/styledbutton.h b/tqtinterface/qt4/tools/designer/designer/styledbutton.h index 68a4adc..f624aad 100644 --- a/tqtinterface/qt4/tools/designer/designer/styledbutton.h +++ b/tqtinterface/qt4/tools/designer/designer/styledbutton.h @@ -72,7 +72,7 @@ public: void setScale( bool ); bool scale() const; - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; void setFormWindow( FormWindow *fw ) { formWindow = fw; } diff --git a/tqtinterface/qt4/tools/designer/designer/tableeditor.ui b/tqtinterface/qt4/tools/designer/designer/tableeditor.ui index fea785a..9d60116 100644 --- a/tqtinterface/qt4/tools/designer/designer/tableeditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/tableeditor.ui @@ -109,7 +109,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -194,7 +194,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -216,7 +216,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -447,7 +447,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -503,7 +503,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/designer/variabledialog.ui b/tqtinterface/qt4/tools/designer/designer/variabledialog.ui index 6ea81ff..644c15c 100644 --- a/tqtinterface/qt4/tools/designer/designer/variabledialog.ui +++ b/tqtinterface/qt4/tools/designer/designer/variabledialog.ui @@ -188,7 +188,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>0</width> <height>21</height> @@ -221,7 +221,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>0</width> <height>21</height> diff --git a/tqtinterface/qt4/tools/designer/designer/widgetfactory.cpp b/tqtinterface/qt4/tools/designer/designer/widgetfactory.cpp index 84ccb85..ab1fbc6 100644 --- a/tqtinterface/qt4/tools/designer/designer/widgetfactory.cpp +++ b/tqtinterface/qt4/tools/designer/designer/widgetfactory.cpp @@ -94,7 +94,7 @@ #include <tqapplication.h> #include <tqsplitter.h> #include <tqtoolbox.h> -#include <tqsizegrip.h> +#include <sizegrip.h> #ifndef TQT_NO_SQL #include "database.h" #endif @@ -1621,7 +1621,7 @@ bool TQLayoutWidget::event( TQEvent *e ) void TQLayoutWidget::updateSizePolicy() { if ( childrenListObject().isEmpty() || childrenListObject().count() == 0 ) { - sp = TQWidget::tqsizePolicy(); + sp = TQWidget::sizePolicy(); return; } @@ -1666,13 +1666,13 @@ void TQLayoutWidget::updateSizePolicy() continue; TQWidget *w = (TQWidget*)o; - if ( !w->tqsizePolicy().mayGrowHorizontally() ) + if ( !w->sizePolicy().mayGrowHorizontally() ) ht &= ~TQSizePolicy::Minimum; - if ( !w->tqsizePolicy().mayShrinkHorizontally() ) + if ( !w->sizePolicy().mayShrinkHorizontally() ) ht &= ~TQSizePolicy::Maximum; - if ( w->tqsizePolicy().mayGrowVertically() ) + if ( w->sizePolicy().mayGrowVertically() ) vt |= TQSizePolicy::Minimum; - if ( w->tqsizePolicy().mayShrinkVertically() ) + if ( w->sizePolicy().mayShrinkVertically() ) vt |= TQSizePolicy::Maximum; } } else if ( ::tqqt_cast<TQHBoxLayout*>(tqlayout()) ) { @@ -1687,13 +1687,13 @@ void TQLayoutWidget::updateSizePolicy() continue; TQWidget *w = (TQWidget*)o; - if ( w->tqsizePolicy().mayGrowHorizontally() ) + if ( w->sizePolicy().mayGrowHorizontally() ) ht |= TQSizePolicy::Minimum; - if ( w->tqsizePolicy().mayShrinkHorizontally() ) + if ( w->sizePolicy().mayShrinkHorizontally() ) ht |= TQSizePolicy::Maximum; - if ( !w->tqsizePolicy().mayGrowVertically() ) + if ( !w->sizePolicy().mayGrowVertically() ) vt &= ~TQSizePolicy::Minimum; - if ( !w->tqsizePolicy().mayShrinkVertically() ) + if ( !w->sizePolicy().mayShrinkVertically() ) vt &= ~TQSizePolicy::Maximum; } } else if ( ::tqqt_cast<TQGridLayout*>(tqlayout()) ) { @@ -1712,13 +1712,13 @@ void TQLayoutWidget::updateSizePolicy() continue; TQWidget *w = (TQWidget*)o; - if ( w->tqsizePolicy().mayGrowHorizontally() ) + if ( w->sizePolicy().mayGrowHorizontally() ) ht |= TQSizePolicy::Minimum; - if ( w->tqsizePolicy().mayShrinkHorizontally() ) + if ( w->sizePolicy().mayShrinkHorizontally() ) ht |= TQSizePolicy::Maximum; - if ( w->tqsizePolicy().mayGrowVertically() ) + if ( w->sizePolicy().mayGrowVertically() ) vt |= TQSizePolicy::Minimum; - if ( w->tqsizePolicy().mayShrinkVertically() ) + if ( w->sizePolicy().mayShrinkVertically() ) vt |= TQSizePolicy::Maximum; } } diff --git a/tqtinterface/qt4/tools/designer/designer/widgetfactory.h b/tqtinterface/qt4/tools/designer/designer/widgetfactory.h index 77c0574..dbd8d3c 100644 --- a/tqtinterface/qt4/tools/designer/designer/widgetfactory.h +++ b/tqtinterface/qt4/tools/designer/designer/widgetfactory.h @@ -249,7 +249,7 @@ class TQLayoutWidget : public TQWidget TQ_OBJECT public: - TQLayoutWidget( TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ), sp( TQWidget::tqsizePolicy() ) {} + TQLayoutWidget( TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ), sp( TQWidget::sizePolicy() ) {} TQSizePolicy sizePolicy() const; void updateSizePolicy(); @@ -276,11 +276,11 @@ public: setBackgroundMode( TQt::PaletteDark ); } - TQSize tqsizeHint() const { - TQSize sh = cusw->tqsizeHint; + TQSize sizeHint() const { + TQSize sh = cusw->sizeHint; if ( sh.isValid() ) return sh; - return TQWidget::tqsizeHint(); + return TQWidget::sizeHint(); } TQString realClassName() { return cusw->className; } diff --git a/tqtinterface/qt4/tools/designer/designer/wizardeditor.ui b/tqtinterface/qt4/tools/designer/designer/wizardeditor.ui index 6a2a14a..9c758c8 100644 --- a/tqtinterface/qt4/tools/designer/designer/wizardeditor.ui +++ b/tqtinterface/qt4/tools/designer/designer/wizardeditor.ui @@ -140,7 +140,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -208,7 +208,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/editor/completion.cpp b/tqtinterface/qt4/tools/designer/editor/completion.cpp index 1b42cb0..1ca2f89 100644 --- a/tqtinterface/qt4/tools/designer/editor/completion.cpp +++ b/tqtinterface/qt4/tools/designer/editor/completion.cpp @@ -41,7 +41,7 @@ #include <tqapplication.h> #include <tqregexp.h> #include "arghintwidget.h" -#include <tqsizegrip.h> +#include <sizegrip.h> #include <tqtimer.h> static TQColor getColor( const TQString &type ) @@ -299,7 +299,7 @@ bool EditorCompletion::doCompletion() (void)new CompletionItem( completionListBox, (*it).text, (*it).type, (*it).postfix, (*it).prefix, (*it).postfix2 ); cList = lst; - completionPopup->resize( completionListBox->tqsizeHint() + + completionPopup->resize( completionListBox->sizeHint() + TQSize( completionListBox->verticalScrollBar()->width() + 4, completionListBox->horizontalScrollBar()->height() + 4 ) ); completionListBox->setCurrentItem( 0 ); @@ -698,7 +698,7 @@ void EditorCompletion::showCompletion( const TQValueList<CompletionEntry> &lst ) (void)new CompletionItem( completionListBox, (*it).text, (*it).type, (*it).postfix, (*it).prefix, (*it).postfix2 ); cList = lst; - completionPopup->resize( completionListBox->tqsizeHint() + + completionPopup->resize( completionListBox->sizeHint() + TQSize( completionListBox->verticalScrollBar()->width() + 4, completionListBox->horizontalScrollBar()->height() + 4 ) ); completionListBox->setCurrentItem( 0 ); diff --git a/tqtinterface/qt4/tools/designer/editor/preferences.ui b/tqtinterface/qt4/tools/designer/editor/preferences.ui index 9b65ef2..739baee 100644 --- a/tqtinterface/qt4/tools/designer/editor/preferences.ui +++ b/tqtinterface/qt4/tools/designer/editor/preferences.ui @@ -270,7 +270,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>0</height> diff --git a/tqtinterface/qt4/tools/designer/examples/addressbook/addressdetails.ui b/tqtinterface/qt4/tools/designer/examples/addressbook/addressdetails.ui index 46963e6..cf4a28a 100644 --- a/tqtinterface/qt4/tools/designer/examples/addressbook/addressdetails.ui +++ b/tqtinterface/qt4/tools/designer/examples/addressbook/addressdetails.ui @@ -142,7 +142,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -173,7 +173,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/examples/addressbook/search.ui b/tqtinterface/qt4/tools/designer/examples/addressbook/search.ui index 4dd1386..047066b 100644 --- a/tqtinterface/qt4/tools/designer/examples/addressbook/search.ui +++ b/tqtinterface/qt4/tools/designer/examples/addressbook/search.ui @@ -78,7 +78,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/examples/colortool/colornameform.ui b/tqtinterface/qt4/tools/designer/examples/colortool/colornameform.ui index 6a5a1f1..86cc17e 100644 --- a/tqtinterface/qt4/tools/designer/examples/colortool/colornameform.ui +++ b/tqtinterface/qt4/tools/designer/examples/colortool/colornameform.ui @@ -83,7 +83,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>0</height> @@ -108,7 +108,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>0</width> <height>11</height> diff --git a/tqtinterface/qt4/tools/designer/examples/colortool/findform.ui b/tqtinterface/qt4/tools/designer/examples/colortool/findform.ui index 2863f02..fb205e6 100644 --- a/tqtinterface/qt4/tools/designer/examples/colortool/findform.ui +++ b/tqtinterface/qt4/tools/designer/examples/colortool/findform.ui @@ -55,7 +55,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>0</height> @@ -80,7 +80,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>0</width> <height>9</height> diff --git a/tqtinterface/qt4/tools/designer/examples/colortool/optionsform.ui b/tqtinterface/qt4/tools/designer/examples/colortool/optionsform.ui index 2e8a4c2..bb4682f 100644 --- a/tqtinterface/qt4/tools/designer/examples/colortool/optionsform.ui +++ b/tqtinterface/qt4/tools/designer/examples/colortool/optionsform.ui @@ -101,7 +101,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>0</width> <height>10</height> diff --git a/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.ui b/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.ui index 00aa9a0..b7bab2a 100644 --- a/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.ui +++ b/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.ui @@ -118,7 +118,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -146,7 +146,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -171,7 +171,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/examples/metric/metric.ui b/tqtinterface/qt4/tools/designer/examples/metric/metric.ui index 8ff4427..580f54f 100644 --- a/tqtinterface/qt4/tools/designer/examples/metric/metric.ui +++ b/tqtinterface/qt4/tools/designer/examples/metric/metric.ui @@ -48,7 +48,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>0</width> <height>20</height> @@ -224,7 +224,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>0</height> @@ -268,7 +268,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>0</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/examples/multiclip/multiclip.ui b/tqtinterface/qt4/tools/designer/examples/multiclip/multiclip.ui index 5e78a47..47cf042 100644 --- a/tqtinterface/qt4/tools/designer/examples/multiclip/multiclip.ui +++ b/tqtinterface/qt4/tools/designer/examples/multiclip/multiclip.ui @@ -92,7 +92,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/plugins/cppeditor/mainfilesettings.ui b/tqtinterface/qt4/tools/designer/plugins/cppeditor/mainfilesettings.ui index 468525f..ea98fb6 100644 --- a/tqtinterface/qt4/tools/designer/plugins/cppeditor/mainfilesettings.ui +++ b/tqtinterface/qt4/tools/designer/plugins/cppeditor/mainfilesettings.ui @@ -121,7 +121,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/plugins/cppeditor/projectsettings.ui b/tqtinterface/qt4/tools/designer/plugins/cppeditor/projectsettings.ui index b6d8642..55b335e 100644 --- a/tqtinterface/qt4/tools/designer/plugins/cppeditor/projectsettings.ui +++ b/tqtinterface/qt4/tools/designer/plugins/cppeditor/projectsettings.ui @@ -80,7 +80,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -249,7 +249,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/plugins/dlg/dlg2ui.cpp b/tqtinterface/qt4/tools/designer/plugins/dlg/dlg2ui.cpp index cb71661..770d3e9 100644 --- a/tqtinterface/qt4/tools/designer/plugins/dlg/dlg2ui.cpp +++ b/tqtinterface/qt4/tools/designer/plugins/dlg/dlg2ui.cpp @@ -555,15 +555,15 @@ bool Dlg2Ui::isWidgetType( const TQDomElement& e ) void Dlg2Ui::emitSpacer( int spacing, int stretch ) { TQString orientationStr; - TQSize tqsizeHint; + TQSize sizeHint; TQString sizeType = TQString( "Fixed" ); if ( yyBoxKind == TQString("hbox") ) { orientationStr = TQString( "Horizontal" ); - tqsizeHint = TQSize( spacing, 20 ); + sizeHint = TQSize( spacing, 20 ); } else { orientationStr = TQString( "Vertical" ); - tqsizeHint = TQSize( 20, spacing ); + sizeHint = TQSize( 20, spacing ); } if ( stretch > 0 ) sizeType = TQString( "Expanding" ); @@ -573,7 +573,7 @@ void Dlg2Ui::emitSpacer( int spacing, int stretch ) TQString("Spacer%1").arg(uniqueSpacer++).latin1() ); emitProperty( TQString("orientation"), orientationStr, TQString("enum") ); if ( spacing > 0 ) - emitProperty( TQString("tqsizeHint"), tqsizeHint, TQString("qsize") ); + emitProperty( TQString("sizeHint"), sizeHint, TQString("qsize") ); emitProperty( TQString("sizeType"), sizeType, TQString("enum") ); emitClosing( TQString("spacer") ); } diff --git a/tqtinterface/qt4/tools/designer/plugins/glade/glade2ui.cpp b/tqtinterface/qt4/tools/designer/plugins/glade/glade2ui.cpp index 4571cf5..4931878 100644 --- a/tqtinterface/qt4/tools/designer/plugins/glade/glade2ui.cpp +++ b/tqtinterface/qt4/tools/designer/plugins/glade/glade2ui.cpp @@ -43,7 +43,7 @@ #include <tqmessagebox.h> #include <tqrect.h> #include <tqregexp.h> -#include <tqsizepolicy.h> +#include <sizepolicy.h> #include <ctype.h> diff --git a/tqtinterface/qt4/tools/designer/plugins/wizards/mainwindowwizard.ui b/tqtinterface/qt4/tools/designer/plugins/wizards/mainwindowwizard.ui index 7e8dada..365d960 100644 --- a/tqtinterface/qt4/tools/designer/plugins/wizards/mainwindowwizard.ui +++ b/tqtinterface/qt4/tools/designer/plugins/wizards/mainwindowwizard.ui @@ -91,7 +91,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -166,7 +166,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -243,7 +243,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -344,7 +344,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -528,7 +528,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -545,7 +545,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -562,7 +562,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -625,7 +625,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -642,7 +642,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/plugins/wizards/sqlformwizard.ui b/tqtinterface/qt4/tools/designer/plugins/wizards/sqlformwizard.ui index c08c829..6137629 100644 --- a/tqtinterface/qt4/tools/designer/plugins/wizards/sqlformwizard.ui +++ b/tqtinterface/qt4/tools/designer/plugins/wizards/sqlformwizard.ui @@ -153,7 +153,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -253,7 +253,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -304,7 +304,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -338,7 +338,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -665,7 +665,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -722,7 +722,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -930,7 +930,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -974,7 +974,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1074,7 +1074,7 @@ name like "qt%" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1125,7 +1125,7 @@ name like "qt%" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1176,7 +1176,7 @@ name like "qt%" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1282,7 +1282,7 @@ name like "qt%" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1365,7 +1365,7 @@ name like "qt%" <property name="sizeType"> <enum>Maximum</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1382,7 +1382,7 @@ name like "qt%" <property name="sizeType"> <enum>Maximum</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>16</width> <height>20</height> @@ -1488,7 +1488,7 @@ name like "qt%" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1551,7 +1551,7 @@ name like "qt%" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1568,7 +1568,7 @@ name like "qt%" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1585,7 +1585,7 @@ name like "qt%" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/shared/domtool.cpp b/tqtinterface/qt4/tools/designer/shared/domtool.cpp index 0c50fbf..8175b2a 100644 --- a/tqtinterface/qt4/tools/designer/shared/domtool.cpp +++ b/tqtinterface/qt4/tools/designer/shared/domtool.cpp @@ -33,7 +33,7 @@ #include "domtool.h" -#include <tqsizepolicy.h> +#include <sizepolicy.h> #include <tqcolor.h> #include <tqcursor.h> #include <tqdatetime.h> diff --git a/tqtinterface/qt4/tools/designer/shared/ui2uib.cpp b/tqtinterface/qt4/tools/designer/shared/ui2uib.cpp index bf6335d..b49537e 100644 --- a/tqtinterface/qt4/tools/designer/shared/ui2uib.cpp +++ b/tqtinterface/qt4/tools/designer/shared/ui2uib.cpp @@ -44,7 +44,7 @@ #include <tqfont.h> #include <tqobject.h> #include <tqrect.h> -#include <tqsizepolicy.h> +#include <sizepolicy.h> /* The .uib file format is the binary counterpart of the .ui file diff --git a/tqtinterface/qt4/tools/designer/templates/Configuration_Dialog.ui b/tqtinterface/qt4/tools/designer/templates/Configuration_Dialog.ui index 9ae02fe..12a0b29 100644 --- a/tqtinterface/qt4/tools/designer/templates/Configuration_Dialog.ui +++ b/tqtinterface/qt4/tools/designer/templates/Configuration_Dialog.ui @@ -103,7 +103,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/templates/Dialog_with_Buttons_(Bottom).ui b/tqtinterface/qt4/tools/designer/templates/Dialog_with_Buttons_(Bottom).ui index 24ecc7f..0d153bd 100644 --- a/tqtinterface/qt4/tools/designer/templates/Dialog_with_Buttons_(Bottom).ui +++ b/tqtinterface/qt4/tools/designer/templates/Dialog_with_Buttons_(Bottom).ui @@ -64,7 +64,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/templates/Dialog_with_Buttons_(Right).ui b/tqtinterface/qt4/tools/designer/templates/Dialog_with_Buttons_(Right).ui index dd354f0..6874935 100644 --- a/tqtinterface/qt4/tools/designer/templates/Dialog_with_Buttons_(Right).ui +++ b/tqtinterface/qt4/tools/designer/templates/Dialog_with_Buttons_(Right).ui @@ -95,7 +95,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/templates/Tab_Dialog.ui b/tqtinterface/qt4/tools/designer/templates/Tab_Dialog.ui index 64a2ed3..5ef82c0 100644 --- a/tqtinterface/qt4/tools/designer/templates/Tab_Dialog.ui +++ b/tqtinterface/qt4/tools/designer/templates/Tab_Dialog.ui @@ -87,7 +87,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/designer/tools/createcw/main.cpp b/tqtinterface/qt4/tools/designer/tools/createcw/main.cpp index 4a5b8ae..a0bc77c 100644 --- a/tqtinterface/qt4/tools/designer/tools/createcw/main.cpp +++ b/tqtinterface/qt4/tools/designer/tools/createcw/main.cpp @@ -97,8 +97,8 @@ static void createDescription( const TQValueList<Widget> &l, TQTextStream &ts ) ts << makeIndent( indent ) << "<header location=\"" << w.location << "\">" << w.include << "</header>" << endl; ts << makeIndent( indent ) << "<sizehint>" << endl; indent++; - ts << makeIndent( indent ) << "<width>" << w.w->tqsizeHint().width() << "</width>" << endl; - ts << makeIndent( indent ) << "<height>" << w.w->tqsizeHint().height() << "</height>" << endl; + ts << makeIndent( indent ) << "<width>" << w.w->sizeHint().width() << "</width>" << endl; + ts << makeIndent( indent ) << "<height>" << w.w->sizeHint().height() << "</height>" << endl; indent--; ts << makeIndent( indent ) << "</sizehint>" << endl; ts << makeIndent( indent ) << "<container>" << ( w.w->inherits( "TQGroupBox" ) || w.w->inherits( "TQWidgetStack" ) ) << "</container>" << endl; diff --git a/tqtinterface/qt4/tools/designer/uic/object.cpp b/tqtinterface/qt4/tools/designer/uic/object.cpp index 1ce89b8..a489e22 100644 --- a/tqtinterface/qt4/tools/designer/uic/object.cpp +++ b/tqtinterface/qt4/tools/designer/uic/object.cpp @@ -35,7 +35,7 @@ #include "parser.h" #include "domtool.h" #include <tqregexp.h> -#include <tqsizepolicy.h> +#include <sizepolicy.h> #include <tqstringlist.h> #define NO_STATIC_COLORS #include <globaldefs.h> diff --git a/tqtinterface/qt4/tools/designer/uic/uic.cpp b/tqtinterface/qt4/tools/designer/uic/uic.cpp index 5eed175..488813b 100644 --- a/tqtinterface/qt4/tools/designer/uic/uic.cpp +++ b/tqtinterface/qt4/tools/designer/uic/uic.cpp @@ -909,7 +909,7 @@ TQString Uic::createSpacerImpl( const TQDomElement &e, const TQString& /*parentC objClass = e.tagName(); objName = registerObject( getObjectName( e ) ); - TQSize size = DomTool::readProperty( e, "tqsizeHint", TQSize( 0, 0 ) ).toSize(); + TQSize size = DomTool::readProperty( e, "sizeHint", TQSize( 0, 0 ) ).toSize(); TQString sizeType = DomTool::readProperty( e, "sizeType", "Expanding" ).toString(); bool isVspacer = DomTool::readProperty( e, "orientation", "Horizontal" ) == "Vertical"; diff --git a/tqtinterface/qt4/tools/designer/uilib/tqwidgetfactory.cpp b/tqtinterface/qt4/tools/designer/uilib/tqwidgetfactory.cpp index 57ea838..7b6168d 100644 --- a/tqtinterface/qt4/tools/designer/uilib/tqwidgetfactory.cpp +++ b/tqtinterface/qt4/tools/designer/uilib/tqwidgetfactory.cpp @@ -693,7 +693,7 @@ void TQWidgetFactory::inputSpacer( const UibStrTable& strings, TQDataStream& in, if ( name == "orientation" ) { vertical = ( value == "Vertical" ); - } else if ( name == "tqsizeHint" ) { + } else if ( name == "sizeHint" ) { w = value.toSize().width(); h = value.toSize().height(); } else if ( name == "sizeType" ) { @@ -1949,7 +1949,7 @@ void TQWidgetFactory::createSpacer( const TQDomElement &e, TQLayout *tqlayout ) orient = Qt::Vertical; } else if ( prop == "sizeType" ) { sizeType = stringToSizeType( n.firstChild().firstChild().toText().data() ); - } else if ( prop == "tqsizeHint" ) { + } else if ( prop == "sizeHint" ) { w = n.firstChild().firstChild().firstChild().toText().data().toInt(); h = n.firstChild().firstChild().nextSibling().firstChild().toText().data().toInt(); } diff --git a/tqtinterface/qt4/tools/linguist/linguist/about.ui b/tqtinterface/qt4/tools/linguist/linguist/about.ui index 4d57398..875b854 100644 --- a/tqtinterface/qt4/tools/linguist/linguist/about.ui +++ b/tqtinterface/qt4/tools/linguist/linguist/about.ui @@ -133,7 +133,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -164,7 +164,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -195,7 +195,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/linguist/linguist/phraselv.cpp b/tqtinterface/qt4/tools/linguist/linguist/phraselv.cpp index 15177c0..b0907ea 100644 --- a/tqtinterface/qt4/tools/linguist/linguist/phraselv.cpp +++ b/tqtinterface/qt4/tools/linguist/linguist/phraselv.cpp @@ -165,7 +165,7 @@ PhraseLV::~PhraseLV() // delete what; } -TQSize PhraseLV::tqsizeHint() const +TQSize PhraseLV::sizeHint() const { - return TQSize( TQListView::tqsizeHint().width(), 50 ); + return TQSize( TQListView::sizeHint().width(), 50 ); } diff --git a/tqtinterface/qt4/tools/linguist/linguist/phraselv.h b/tqtinterface/qt4/tools/linguist/linguist/phraselv.h index e6fedd6..0317b53 100644 --- a/tqtinterface/qt4/tools/linguist/linguist/phraselv.h +++ b/tqtinterface/qt4/tools/linguist/linguist/phraselv.h @@ -74,7 +74,7 @@ public: PhraseLV( TQWidget *tqparent, const char *name ); ~PhraseLV(); - virtual TQSize tqsizeHint() const; + virtual TQSize sizeHint() const; private: TQWhatsThis *what; diff --git a/tqtinterface/qt4/tools/linguist/linguist/statistics.ui b/tqtinterface/qt4/tools/linguist/linguist/statistics.ui index 1d304d7..59c7570 100644 --- a/tqtinterface/qt4/tools/linguist/linguist/statistics.ui +++ b/tqtinterface/qt4/tools/linguist/linguist/statistics.ui @@ -69,7 +69,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>40</width> <height>20</height> @@ -94,7 +94,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>40</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/linguist/linguist/statistics.ui.h b/tqtinterface/qt4/tools/linguist/linguist/statistics.ui.h index 0207d0a..8860273 100644 --- a/tqtinterface/qt4/tools/linguist/linguist/statistics.ui.h +++ b/tqtinterface/qt4/tools/linguist/linguist/statistics.ui.h @@ -33,7 +33,7 @@ void Statistics::init() { - setFixedHeight( tqsizeHint().height() ); + setFixedHeight( sizeHint().height() ); } void Statistics::updateStats( int w1, int c1, int cs1, int w2, int c2, int cs2 ) diff --git a/tqtinterface/qt4/tools/qconfig/main.cpp b/tqtinterface/qt4/tools/qconfig/main.cpp index 22b6a8b..57eaa31 100644 --- a/tqtinterface/qt4/tools/qconfig/main.cpp +++ b/tqtinterface/qt4/tools/qconfig/main.cpp @@ -533,7 +533,7 @@ void Main::loadFeatures(const TQString& filename) } #ifdef FIXED_LAYOUT - lv->setFixedWidth(lv->tqsizeHint().width()); + lv->setFixedWidth(lv->sizeHint().width()); #endif } @@ -727,7 +727,7 @@ int main(int argc, char** argv) } m.loadFeatures(qfeatures); m.loadConfig(qconfig); - m.resize(m.tqsizeHint()+TQSize(500,300)); + m.resize(m.sizeHint()+TQSize(500,300)); app.setMainWidget(&m); m.show(); return app.exec(); diff --git a/tqtinterface/qt4/tools/qtconfig/colorbutton.cpp b/tqtinterface/qt4/tools/qtconfig/colorbutton.cpp index 4dd152f..a5f0271 100644 --- a/tqtinterface/qt4/tools/qtconfig/colorbutton.cpp +++ b/tqtinterface/qt4/tools/qtconfig/colorbutton.cpp @@ -76,7 +76,7 @@ void ColorButton::changeColor() } -TQSize ColorButton::tqsizeHint() const +TQSize ColorButton::sizeHint() const { return TQSize(40, 25); } diff --git a/tqtinterface/qt4/tools/qtconfig/colorbutton.h b/tqtinterface/qt4/tools/qtconfig/colorbutton.h index 451c6df..c052ff8 100644 --- a/tqtinterface/qt4/tools/qtconfig/colorbutton.h +++ b/tqtinterface/qt4/tools/qtconfig/colorbutton.h @@ -49,7 +49,7 @@ public: const TQColor &color() const { return col; } void setColor(const TQColor &); - TQSize tqsizeHint() const; + TQSize sizeHint() const; TQSize tqminimumSizeHint() const; void mousePressEvent(TQMouseEvent *); diff --git a/tqtinterface/qt4/tools/qtconfig/mainwindowbase.ui b/tqtinterface/qt4/tools/qtconfig/mainwindowbase.ui index fb56464..5b8d004 100644 --- a/tqtinterface/qt4/tools/qtconfig/mainwindowbase.ui +++ b/tqtinterface/qt4/tools/qtconfig/mainwindowbase.ui @@ -227,7 +227,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>70</width> <height>20</height> @@ -1039,7 +1039,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>40</height> @@ -1157,7 +1157,7 @@ <property name="sizeType"> <enum>Minimum</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1321,7 +1321,7 @@ <property name="sizeType"> <enum>Minimum</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/qtconfig/paletteeditoradvancedbase.ui b/tqtinterface/qt4/tools/qtconfig/paletteeditoradvancedbase.ui index 8daf961..7f108ea 100644 --- a/tqtinterface/qt4/tools/qtconfig/paletteeditoradvancedbase.ui +++ b/tqtinterface/qt4/tools/qtconfig/paletteeditoradvancedbase.ui @@ -273,7 +273,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -437,7 +437,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -515,7 +515,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/qtconfig/previewwidgetbase.ui b/tqtinterface/qt4/tools/qtconfig/previewwidgetbase.ui index a01b57c..5860223 100644 --- a/tqtinterface/qt4/tools/qtconfig/previewwidgetbase.ui +++ b/tqtinterface/qt4/tools/qtconfig/previewwidgetbase.ui @@ -295,7 +295,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/qvfb/config.ui b/tqtinterface/qt4/tools/qvfb/config.ui index f7a8b6c..22245a0 100644 --- a/tqtinterface/qt4/tools/qvfb/config.ui +++ b/tqtinterface/qt4/tools/qvfb/config.ui @@ -191,7 +191,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -540,7 +540,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1397,7 +1397,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1414,7 +1414,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> @@ -1444,7 +1444,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>20</height> diff --git a/tqtinterface/qt4/tools/qvfb/qvfb.cpp b/tqtinterface/qt4/tools/qvfb/qvfb.cpp index 8fb4cb1..1e01c51 100644 --- a/tqtinterface/qt4/tools/qvfb/qvfb.cpp +++ b/tqtinterface/qt4/tools/qvfb/qvfb.cpp @@ -114,7 +114,7 @@ void TQVFb::init( int display_id, int w, int h, int d, const TQString &skin_name view->setMargin( 0 ); view->setFrameStyle( TQFrame::NoFrame ); setCentralWidget( view ); - resize( tqsizeHint() ); + resize( sizeHint() ); view->show(); } diff --git a/tqtinterface/qt4/tools/qvfb/qvfbview.cpp b/tqtinterface/qt4/tools/qvfb/qvfbview.cpp index f7d0669..163c41d 100644 --- a/tqtinterface/qt4/tools/qvfb/qvfbview.cpp +++ b/tqtinterface/qt4/tools/qvfb/qvfbview.cpp @@ -165,7 +165,7 @@ TQVFbView::~TQVFbView() unlink( keyboardPipe ); } -TQSize TQVFbView::tqsizeHint() const +TQSize TQVFbView::sizeHint() const { int f = 2 * frameWidth(); return TQSize( contentsWidth() + f, contentsHeight() + f ); diff --git a/tqtinterface/qt4/tools/qvfb/qvfbview.h b/tqtinterface/qt4/tools/qvfb/qvfbview.h index df5adcc..af85f54 100644 --- a/tqtinterface/qt4/tools/qvfb/qvfbview.h +++ b/tqtinterface/qt4/tools/qvfb/qvfbview.h @@ -67,7 +67,7 @@ public: double zoom() const { return zm; } - TQSize tqsizeHint() const; + TQSize sizeHint() const; public Q_SLOTS: void setTouchscreenEmulation( bool ); |