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/listbox-example.html | 72 +++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'doc/html/listbox-example.html') diff --git a/doc/html/listbox-example.html b/doc/html/listbox-example.html index 46f166126..79f4528f9 100644 --- a/doc/html/listbox-example.html +++ b/doc/html/listbox-example.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

This example shows how to use the different modes (single columns, multiple columns, -fixed number of rows, etc.) of TQListBox. +fixed number of rows, etc.) of TQListBox.


Header file:

/****************************************************************************
@@ -77,10 +77,10 @@ private slots:
     void sortDescending();
 
 private:
-    TQListBox * l;
+    TQListBox * l;
     TQSpinBox * columns;
     TQSpinBox * rows;
-    TQButtonGroup * bg;
+    TQButtonGroup * bg;
 };
 
 
@@ -105,8 +105,8 @@ private:
 #include <tqradiobutton.h>
 #include <tqcheckbox.h>
 #include <tqspinbox.h>
-#include <ntqlistbox.h>
-#include <ntqbuttongroup.h>
+#include <tqlistbox.h>
+#include <tqbuttongroup.h>
 #include <ntqlayout.h>
 #include <tqpushbutton.h>
 
@@ -114,28 +114,28 @@ private:
 ListBoxDemo::ListBoxDemo()
     : TQWidget( 0, 0 )
 {
-    TQGridLayout * g = new TQGridLayout( this, 2, 2, 6 );
+    TQGridLayout * g = new TQGridLayout( this, 2, 2, 6 );
 
-    g->addWidget( new TQLabel( "<b>Configuration:</b>", this ), 0, 0 );
-    g->addWidget( new TQLabel( "<b>Result:</b>", this ), 0, 1 );
+    g->addWidget( new TQLabel( "<b>Configuration:</b>", this ), 0, 0 );
+    g->addWidget( new TQLabel( "<b>Result:</b>", this ), 0, 1 );
 
-    l = new TQListBox( this );
-    g->addWidget( l, 1, 1 );
+    l = new TQListBox( this );
+    g->addWidget( l, 1, 1 );
     l->setFocusPolicy( TQWidget::StrongFocus );
 
     TQVBoxLayout * v = new TQVBoxLayout;
-    g->addLayout( v, 1, 0 );
+    g->addLayout( v, 1, 0 );
 
     TQRadioButton * b;
-    bg = new TQButtonGroup( 0 );
+    bg = new TQButtonGroup( 0 );
 
     b = new TQRadioButton( "Fixed number of columns,\n"
                           "as many rows as needed.",
                           this );
-    bg->insert( b );
+    bg->insert( b );
     v->addWidget( b );
     b->setChecked( TRUE );
-    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setNumCols()) );
+    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setNumCols()) );
     TQHBoxLayout * h = new TQHBoxLayout;
     v->addLayout( h );
     h->addSpacing( 30 );
@@ -149,18 +149,18 @@ private:
     b = new TQRadioButton( "As many columns as fit on-screen,\n"
                           "as many rows as needed.",
                           this );
-    bg->insert( b );
+    bg->insert( b );
     v->addWidget( b );
-    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setColsByWidth()) );
+    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setColsByWidth()) );
 
     v->addSpacing( 12 );
 
     b = new TQRadioButton( "Fixed number of rows,\n"
                           "as many columns as needed.",
                           this );
-    bg->insert( b );
+    bg->insert( b );
     v->addWidget( b );
-    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setNumRows()) );
+    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setNumRows()) );
     h = new TQHBoxLayout;
     v->addLayout( h );
     h->addSpacing( 30 );
@@ -175,39 +175,39 @@ private:
     b = new TQRadioButton( "As many rows as fit on-screen,\n"
                           "as many columns as needed.",
                           this );
-    bg->insert( b );
+    bg->insert( b );
     v->addWidget( b );
-    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setRowsByHeight()) );
+    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setRowsByHeight()) );
 
     v->addSpacing( 12 );
 
     TQCheckBox * cb = new TQCheckBox( "Variable-height rows", this );
     cb->setChecked( TRUE );
-    connect( cb, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setVariableHeight(bool)) );
+    connect( cb, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setVariableHeight(bool)) );
     v->addWidget( cb );
     v->addSpacing( 6 );
 
     cb = new TQCheckBox( "Variable-width columns", this );
-    connect( cb, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setVariableWidth(bool)) );
+    connect( cb, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setVariableWidth(bool)) );
     v->addWidget( cb );
 
     cb = new TQCheckBox( "Extended-Selection", this );
-    connect( cb, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setMultiSelection(bool)) );
+    connect( cb, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setMultiSelection(bool)) );
     v->addWidget( cb );
 
     TQPushButton *pb = new TQPushButton( "Sort ascending", this );
-    connect( pb, TQ_SIGNAL( clicked() ), this, TQ_SLOT( sortAscending() ) );
+    connect( pb, TQ_SIGNAL( clicked() ), this, TQ_SLOT( sortAscending() ) );
     v->addWidget( pb );
 
     pb = new TQPushButton( "Sort descending", this );
-    connect( pb, TQ_SIGNAL( clicked() ), this, TQ_SLOT( sortDescending() ) );
+    connect( pb, TQ_SIGNAL( clicked() ), this, TQ_SLOT( sortDescending() ) );
     v->addWidget( pb );
 
     v->addStretch( 100 );
 
     int i = 0;
     while( ++i <= 2560 )
-        l->insertItem( TQString::fromLatin1( "Item " ) + TQString::number( i ),
+        l->insertItem( TQString::fromLatin1( "Item " ) + TQString::number( i ),
                        i );
     columns->setRange( 1, 256 );
     columns->setValue( 1 );
@@ -229,7 +229,7 @@ void ListBoxDemo::setNumRows()
 {
     columns->setEnabled( FALSE );
     rows->setEnabled( TRUE );
-    l->setRowMode( rows->value() );
+    l->setRowMode( rows->value() );
 }
 
 
@@ -237,7 +237,7 @@ void ListBoxDemo::setNumCols()
 {
     columns->setEnabled( TRUE );
     rows->setEnabled( FALSE );
-    l->setColumnMode( columns->value() );
+    l->setColumnMode( columns->value() );
 }
 
 
@@ -245,7 +245,7 @@ void ListBoxDemo::setRowsByHeight()
 {
     columns->setEnabled( FALSE );
     rows->setEnabled( FALSE );
-    l->setRowMode( TQListBox::FitToHeight );
+    l->setRowMode( TQListBox::FitToHeight );
 }
 
 
@@ -253,35 +253,35 @@ void ListBoxDemo::setColsByWidth()
 {
     columns->setEnabled( FALSE );
     rows->setEnabled( FALSE );
-    l->setColumnMode( TQListBox::FitToWidth );
+    l->setColumnMode( TQListBox::FitToWidth );
 }
 
 
 void ListBoxDemo::setVariableWidth( bool b )
 {
-    l->setVariableWidth( b );
+    l->setVariableWidth( b );
 }
 
 
 void ListBoxDemo::setVariableHeight( bool b )
 {
-    l->setVariableHeight( b );
+    l->setVariableHeight( b );
 }
 
 void ListBoxDemo::setMultiSelection( bool b )
 {
-    l->clearSelection();
-    l->setSelectionMode( b ? TQListBox::Extended : TQListBox::Single );
+    l->clearSelection();
+    l->setSelectionMode( b ? TQListBox::Extended : TQListBox::Single );
 }
 
 void ListBoxDemo::sortAscending()
 {
-    l->sort( TRUE );
+    l->sort( TRUE );
 }
 
 void ListBoxDemo::sortDescending()
 {
-    l->sort( FALSE );
+    l->sort( FALSE );
 }
 
-- cgit v1.2.1