From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/qdir-example.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/qdir-example.html') diff --git a/doc/html/qdir-example.html b/doc/html/qdir-example.html index 9058146fc..4d8066987 100644 --- a/doc/html/qdir-example.html +++ b/doc/html/qdir-example.html @@ -122,7 +122,7 @@ static const char *home[]={ // **************************************************************************************************** -PixmapView::PixmapView( TQWidget *parent ) +PixmapView::PixmapView( TQWidget *parent ) : TQScrollView( parent ) { viewport()->setBackgroundMode( PaletteBase ); @@ -131,7 +131,7 @@ static const char *home[]={ void PixmapView::setPixmap( const TQPixmap &pix ) { pixmap = pix; - resizeContents( pixmap.size().width(), pixmap.size().height() ); + resizeContents( pixmap.size().width(), pixmap.size().height() ); viewport()->repaint( FALSE ); } @@ -143,14 +143,14 @@ void PixmapView::setPixmap( const TQ // **************************************************************************************************** -Preview::Preview( TQWidget *parent ) - : TQWidgetStack( parent ) +Preview::Preview( TQWidget *parent ) + : TQWidgetStack( parent ) { normalText = new TQMultiLineEdit( this ); normalText->setReadOnly( TRUE ); html = new TQTextView( this ); pixmap = new PixmapView( this ); - raiseWidget( normalText ); + raiseWidget( normalText ); } void Preview::showPreview( const TQUrl &u, int size ) @@ -160,7 +160,7 @@ void Preview::showPreview( const TQUrl< TQFileInfo fi( path ); if ( fi.isFile() && (int)fi.size() > size * 1000 ) { normalText->setText( tr( "The File\n%1\nis too large, so I don't show it!" ).arg( path ) ); - raiseWidget( normalText ); + raiseWidget( normalText ); return; } @@ -198,7 +198,7 @@ void Preview::showPreview( const TQUrl< // **************************************************************************************************** -PreviewWidget::PreviewWidget( TQWidget *parent ) +PreviewWidget::PreviewWidget( TQWidget *parent ) : TQVBox( parent ), TQFilePreview() { setSpacing( 5 ); @@ -209,7 +209,7 @@ void Preview::showPreview( const TQUrl< sizeSpinBox = new TQSpinBox( 1, 10000, 1, row ); sizeSpinBox->setSuffix( " KB" ); sizeSpinBox->setValue( 64 ); - row->setFixedHeight( 10 + sizeSpinBox->sizeHint().height() ); + row->setFixedHeight( 10 + sizeSpinBox->sizeHint().height() ); preview = new Preview( this ); } @@ -230,7 +230,7 @@ void PreviewWidget::previewUrl( const T dirView->header()->hide(); ::Directory *root = new ::Directory( dirView, "/" ); root->setOpen( TRUE ); - dirView->setFixedWidth( 150 ); + dirView->setFixedWidth( 150 ); addLeftWidget( dirView ); @@ -273,7 +273,7 @@ void PreviewWidget::previewUrl( const T addToolButton( b ); - resize( width() + width() / 3, height() ); + resize( width() + width() / 3, height() ); } CustomFileDialog::~CustomFileDialog() @@ -295,9 +295,9 @@ void CustomFileDialog::setDir2( const blockSignals( FALSE ); } -void CustomFileDialog::showEvent( TQShowEvent *e ) +void CustomFileDialog::showEvent( TQShowEvent *e ) { - TQFileDialog::showEvent( e ); + TQFileDialog::showEvent( e ); dirView->setDir( dirPath() ); } @@ -380,7 +380,7 @@ int main( int argc, char ** argv ) fd.setViewMode( TQFileDialog::List ); fd.setPreviewMode( TQFileDialog::Contents ); } - fd.setCaption( caption ); + fd.setCaption( caption ); fd.setSelection( start ); if ( fd.exec() == TQDialog::Accepted ) { TQString result = fd.selectedFile(); -- cgit v1.2.3