From 0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 24 Jul 2024 19:37:05 +0900 Subject: Rename text class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/ntqscrollview.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/ntqscrollview.html') diff --git a/doc/html/ntqscrollview.html b/doc/html/ntqscrollview.html index 6d7dd3d5b..c04ffc228 100644 --- a/doc/html/ntqscrollview.html +++ b/doc/html/ntqscrollview.html @@ -184,16 +184,16 @@ large child in the TQScrollView. The child should be a child of the You can go on to add arbitrary child widgets to the single child in the scrollview as you would with any widget:
-        TQLabel* child1 = new TQLabel("CHILD", big_box);
-        TQLabel* child2 = new TQLabel("CHILD", big_box);
-        TQLabel* child3 = new TQLabel("CHILD", big_box);
+        TQLabel* child1 = new TQLabel("CHILD", big_box);
+        TQLabel* child2 = new TQLabel("CHILD", big_box);
+        TQLabel* child3 = new TQLabel("CHILD", big_box);
         ...
     

Here the TQScrollView has four children: the viewport(), the verticalScrollBar(), the horizontalScrollBar() and a small cornerWidget(). The viewport() has one child: the big TQVBox. The -TQVBox has the three TQLabel objects as child widgets. When the view +TQVBox has the three TQLabel objects as child widgets. When the view is scrolled, the TQVBox is moved; its children move with it as child widgets normally do.

Using a Very Big View with Some Widgets @@ -209,17 +209,17 @@ adding them with addChild() (this is the same as the pro the single large widget in the previous example):
         TQScrollView* sv = new TQScrollView(...);
-        TQLabel* child1 = new TQLabel("CHILD", sv->viewport());
+        TQLabel* child1 = new TQLabel("CHILD", sv->viewport());
         sv->addChild(child1);
-        TQLabel* child2 = new TQLabel("CHILD", sv->viewport());
+        TQLabel* child2 = new TQLabel("CHILD", sv->viewport());
         sv->addChild(child2);
-        TQLabel* child3 = new TQLabel("CHILD", sv->viewport());
+        TQLabel* child3 = new TQLabel("CHILD", sv->viewport());
         sv->addChild(child3);
     
Here, the TQScrollView has the same four children: the viewport(), the verticalScrollBar(), the horizontalScrollBar() and a small -cornerWidget(). The viewport() has the three TQLabel objects as +cornerWidget(). The viewport() has the three TQLabel objects as child widgets. When the view is scrolled, the scrollview moves the child widgets individually.

Using a Very Big View with Many Widgets @@ -236,11 +236,11 @@ of the viewport(), and adding them with enableClipper(TRUE); - TQLabel* child1 = new TQLabel("CHILD", sv->viewport()); + TQLabel* child1 = new TQLabel("CHILD", sv->viewport()); sv->addChild(child1); - TQLabel* child2 = new TQLabel("CHILD", sv->viewport()); + TQLabel* child2 = new TQLabel("CHILD", sv->viewport()); sv->addChild(child2); - TQLabel* child3 = new TQLabel("CHILD", sv->viewport()); + TQLabel* child3 = new TQLabel("CHILD", sv->viewport()); sv->addChild(child3); -- cgit v1.2.3