From 82ecd83484c9fa1ede059986ab771e74e33e68ef Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 16 Aug 2024 19:11:00 +0900 Subject: Rename layout nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/layout-example.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'doc/html/layout-example.html') diff --git a/doc/html/layout-example.html b/doc/html/layout-example.html index b386c2fe3..2bdfade02 100644 --- a/doc/html/layout-example.html +++ b/doc/html/layout-example.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

This example shows simple and intermediate use of TQt's layout -classes, TQGridLayout, TQBoxLayout etc. +classes, TQGridLayout, TQBoxLayout etc.


Implementation:

/****************************************************************************
@@ -51,7 +51,7 @@ classes, TQGridLayout, tqlabel.h>
 #include <tqcolor.h>
 #include <tqpushbutton.h>
-#include <ntqlayout.h>
+#include <tqlayout.h>
 #include <tqlineedit.h>
 #include <tqmultilineedit.h>
 #include <tqmenubar.h>
@@ -69,7 +69,7 @@ public:
 {
     // Make the top-level layout; a vertical box to contain all widgets
     // and sub-layouts.
-    TQBoxLayout *topLayout = new TQVBoxLayout( this, 5 );
+    TQBoxLayout *topLayout = new TQVBoxLayout( this, 5 );
 
     // Create a menubar...
     TQMenuBar *menubar = new TQMenuBar( this );
@@ -80,10 +80,10 @@ public:
     menubar->insertItem( "&File", popup );
 
     // ...and tell the layout about it.
-    topLayout->setMenuBar( menubar );
+    topLayout->setMenuBar( menubar );
 
     // Make an hbox that will hold a row of buttons.
-    TQBoxLayout *buttons = new TQHBoxLayout( topLayout );
+    TQBoxLayout *buttons = new TQHBoxLayout( topLayout );
     int i;
     for ( i = 1; i <= 4; i++ ) {
         TQPushButton* but = new TQPushButton( this );
@@ -95,24 +95,24 @@ public:
         // stretch horizontally. The buttons will not stretch
         // vertically, since bigWidget below will take up vertical
         // stretch.
-        buttons->addWidget( but, 10 );
+        buttons->addWidget( but, 10 );
         // (Actually, the result would have been the same with a
         // stretch factor of 0; if no items in a layout have non-zero
         // stretch, the space is divided equally between members.)
     }
 
     // Make another hbox that will hold a left-justified row of buttons.
-    TQBoxLayout *buttons2 = new TQHBoxLayout( topLayout );
+    TQBoxLayout *buttons2 = new TQHBoxLayout( topLayout );
 
     TQPushButton* but = new TQPushButton( "Button five", this );
-    buttons2->addWidget( but );
+    buttons2->addWidget( but );
 
     but = new TQPushButton( "Button 6", this );
-    buttons2->addWidget( but );
+    buttons2->addWidget( but );
 
     // Fill up the rest of the hbox with stretchable space, so that
     // the buttons get their minimum width and are pushed to the left.
-    buttons2->addStretch( 10 );
+    buttons2->addStretch( 10 );
 
     // Make  a big widget that will grab all space in the middle.
     TQMultiLineEdit *bigWidget = new TQMultiLineEdit( this );
@@ -122,8 +122,8 @@ public:
     // Set vertical stretch factor to 10 to let the bigWidget stretch
     // vertically. It will stretch horizontally because there are no
     // widgets beside it to take up horizontal stretch.
-    //    topLayout->addWidget( bigWidget, 10 );
-    topLayout->addWidget( bigWidget );
+    //    topLayout->addWidget( bigWidget, 10 );
+    topLayout->addWidget( bigWidget );
 
     // Make a grid that will hold a vertical table of TQLabel/TQLineEdit
     // pairs next to a large TQMultiLineEdit.
@@ -175,9 +175,9 @@ public:
     sb->setFixedHeight( sb->sizeHint().height() );
 
     sb->setAlignment( AlignVCenter | AlignLeft );
-    topLayout->addWidget( sb );
+    topLayout->addWidget( sb );
 
-    topLayout->activate();
+    topLayout->activate();
 }
 
 ExampleWidget::~ExampleWidget()
-- 
cgit v1.2.3