From 42957a3f812a1db64a9ae452baa2d3fbc35f2466 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 12 Aug 2024 22:02:11 +0900 Subject: Rename more widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/scrollview-example.html | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'doc/html/scrollview-example.html') diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html index c23b0321c..53633144e 100644 --- a/doc/html/scrollview-example.html +++ b/doc/html/scrollview-example.html @@ -57,7 +57,7 @@ optimized for very large contents. #include <ntqmessagebox.h> #include <ntqlayout.h> #include <tqlabel.h> -#include <ntqmultilineedit.h> +#include <tqmultilineedit.h> #include <tqsizegrip.h> #include <stdlib.h> @@ -71,19 +71,19 @@ static const int max_mlw = 5; static const int max_mw = 10; -class BigShrinker : public TQFrame { +class BigShrinker : public TQFrame { TQ_OBJECT public: BigShrinker(TQWidget* parent) : - TQFrame(parent) + TQFrame(parent) { setFrameStyle(TQFrame::Box|TQFrame::Sunken); int h=35; int b=0; for (int y=0; y<2000-h; y+=h+10) { if (y == 0) { - TQButton* q=new TQPushButton("Quit", this); - connect(q, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit())); + TQButton* q=new TQPushButton("Quit", this); + connect(q, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit())); } else { TQString str; if ( b > 0 ) { @@ -119,7 +119,7 @@ signals: }; class BigMatrix : public TQScrollView { - TQMultiLineEdit *dragging; + TQMultiLineEdit *dragging; public: BigMatrix(TQWidget* parent) : TQScrollView(parent,"matrix", WStaticContents), @@ -135,7 +135,7 @@ public: { int x, y; viewportToContents( e->x(), e->y(), x, y ); - dragging = new TQMultiLineEdit(viewport(),"Another"); + dragging = new TQMultiLineEdit(viewport(),"Another"); dragging->setText("Thanks!"); dragging->resize(100,100); addChild(dragging, x, y); @@ -279,7 +279,7 @@ public: vp->enableClipper(TRUE); srand(1); for (int i=0; i<30; i++) { - TQMultiLineEdit *l = new TQMultiLineEdit(vp->viewport(),"First"); + TQMultiLineEdit *l = new TQMultiLineEdit(vp->viewport(),"First"); l->setText("Drag out more of these."); l->resize(100,100); vp->addChild(l, rand()%800, rand()%10000); @@ -398,19 +398,19 @@ private slots: if (id == style_id) { sty = 0; } else if (id & TQFrame::MShape) { - sty = vp->frameStyle()&TQFrame::MShadow; - sty = (sty ? sty : TQFrame::Plain) | (id&TQFrame::MShape); + sty = vp->frameStyle()&TQFrame::MShadow; + sty = (sty ? sty : TQFrame::Plain) | (id&TQFrame::MShape); } else { - sty = vp->frameStyle()&TQFrame::MShape; - sty = (sty ? sty : TQFrame::Box) | (id&TQFrame::MShadow); + sty = vp->frameStyle()&TQFrame::MShape; + sty = (sty ? sty : TQFrame::Box) | (id&TQFrame::MShadow); } - vp->setFrameStyle(sty); + vp->setFrameStyle(sty); } else if (id & lw_id) { - vp->setLineWidth(id&~lw_id); + vp->setLineWidth(id&~lw_id); } else if (id & mlw_id) { - vp->setMidLineWidth(id&~mlw_id); + vp->setMidLineWidth(id&~mlw_id); } else { - vp->setMargin(id&~mw_id); + vp->setMargin(id&~mw_id); } vp->update(); @@ -419,7 +419,7 @@ private slots: void setFMenuItems() { - int sty = vp->frameStyle(); + int sty = vp->frameStyle(); f_options->setItemChecked( style_id, !sty ); @@ -434,13 +434,13 @@ private slots: } for (int lw=1; lw<=max_lw; lw++) - lw_options->setItemChecked( lw_id|lw, vp->lineWidth() == lw ); + lw_options->setItemChecked( lw_id|lw, vp->lineWidth() == lw ); for (int mlw=0; mlw<=max_mlw; mlw++) - mlw_options->setItemChecked( mlw_id|mlw, vp->midLineWidth() == mlw ); + mlw_options->setItemChecked( mlw_id|mlw, vp->midLineWidth() == mlw ); for (int mw=0; mw<=max_mw; mw++) - mw_options->setItemChecked( mw_id|mw, vp->margin() == mw ); + mw_options->setItemChecked( mw_id|mw, vp->margin() == mw ); } private: -- cgit v1.2.3