From fef846914f8db6dc117e206ef913d519bf6bb33e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 29 Jul 2024 12:43:23 +0900 Subject: Rename basic widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tqdir-example.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'doc/html/tqdir-example.html') diff --git a/doc/html/tqdir-example.html b/doc/html/tqdir-example.html index fcb68d84e..cc84fea51 100644 --- a/doc/html/tqdir-example.html +++ b/doc/html/tqdir-example.html @@ -54,14 +54,14 @@ body { background: #ffffff; color: black; } #include <tqfile.h> #include <tqtextstream.h> #include <ntqhbox.h> -#include <ntqspinbox.h> +#include <tqspinbox.h> #include <tqlabel.h> #include <ntqmultilineedit.h> #include <ntqheader.h> #include <tqevent.h> #include <tqpainter.h> #include <tqpopupmenu.h> -#include <ntqpushbutton.h> +#include <tqpushbutton.h> #include <tqtoolbutton.h> #include <tqfile.h> #include <tqtextstream.h> @@ -123,19 +123,19 @@ static const char *home[]={ // **************************************************************************************************** PixmapView::PixmapView( TQWidget *parent ) - : TQScrollView( parent ) + : TQScrollView( parent ) { - viewport()->setBackgroundMode( PaletteBase ); + viewport()->setBackgroundMode( PaletteBase ); } void PixmapView::setPixmap( const TQPixmap &pix ) { pixmap = pix; - resizeContents( pixmap.size().width(), pixmap.size().height() ); - viewport()->repaint( FALSE ); + resizeContents( pixmap.size().width(), pixmap.size().height() ); + viewport()->repaint( FALSE ); } -void PixmapView::drawContents( TQPainter *p, int cx, int cy, int cw, int ch ) +void PixmapView::drawContents( TQPainter *p, int cx, int cy, int cw, int ch ) { p->fillRect( cx, cy, cw, ch, colorGroup().brush( TQColorGroup::Base ) ); p->drawPixmap( 0, 0, pixmap ); @@ -206,16 +206,16 @@ void Preview::showPreview( const TQUrlTQHBox *row = new TQHBox( this ); row->setSpacing( 5 ); (void)new TQLabel( tr( "Only show files smaller than: " ), row ); - sizeSpinBox = new TQSpinBox( 1, 10000, 1, row ); - sizeSpinBox->setSuffix( " KB" ); - sizeSpinBox->setValue( 64 ); + sizeSpinBox = new TQSpinBox( 1, 10000, 1, row ); + sizeSpinBox->setSuffix( " KB" ); + sizeSpinBox->setValue( 64 ); row->setFixedHeight( 10 + sizeSpinBox->sizeHint().height() ); preview = new Preview( this ); } void PreviewWidget::previewUrl( const TQUrl &u ) { - preview->showPreview( u, sizeSpinBox->value() ); + preview->showPreview( u, sizeSpinBox->value() ); } // **************************************************************************************************** @@ -234,7 +234,7 @@ void PreviewWidget::previewUrl( const TQ addLeftWidget( dirView ); - TQPushButton *p = new TQPushButton( this ); + TQPushButton *p = new TQPushButton( this ); p->setPixmap( TQPixmap( bookmarks ) ); TQToolTip::add( p, tr( "Bookmarks" ) ); @@ -256,7 +256,7 @@ void PreviewWidget::previewUrl( const TQ } } - p->setPopup( bookmarkMenu ); + p->setPopup( bookmarkMenu ); addToolButton( p, TRUE ); @@ -382,7 +382,7 @@ int main( int argc, char ** argv ) } fd.setCaption( caption ); fd.setSelection( start ); - if ( fd.exec() == TQDialog::Accepted ) { + if ( fd.exec() == TQDialog::Accepted ) { TQString result = fd.selectedFile(); printf("%s\n", (const char*)result); return 0; @@ -391,7 +391,7 @@ int main( int argc, char ** argv ) } } else { CustomFileDialog fd; - fd.exec(); + fd.exec(); return 1; } } -- cgit v1.2.3