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/buttongroups-example.html | 64 +++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'doc/html/buttongroups-example.html') diff --git a/doc/html/buttongroups-example.html b/doc/html/buttongroups-example.html index c9b50d912..5f9937544 100644 --- a/doc/html/buttongroups-example.html +++ b/doc/html/buttongroups-example.html @@ -63,8 +63,8 @@ public: ButtonsGroups( TQWidget *parent = 0, const char *name = 0 ); protected: - TQCheckBox *state; - TQRadioButton *rb21, *rb22, *rb23; + TQCheckBox *state; + TQRadioButton *rb21, *rb22, *rb23; protected slots: void slotChangeGrp3State(); @@ -91,10 +91,10 @@ protected slots: #include <tqpopupmenu.h> #include <ntqbuttongroup.h> #include <ntqlayout.h> -#include <ntqradiobutton.h> -#include <ntqcheckbox.h> +#include <tqradiobutton.h> +#include <tqcheckbox.h> #include <ntqgroupbox.h> -#include <ntqpushbutton.h> +#include <tqpushbutton.h> /* * Constructor @@ -118,10 +118,10 @@ protected slots: bgrp1->setExclusive( TRUE ); // insert 3 radiobuttons - TQRadioButton *rb11 = new TQRadioButton( "&Radiobutton 1", bgrp1 ); - rb11->setChecked( TRUE ); - (void)new TQRadioButton( "R&adiobutton 2", bgrp1 ); - (void)new TQRadioButton( "Ra&diobutton 3", bgrp1 ); + TQRadioButton *rb11 = new TQRadioButton( "&Radiobutton 1", bgrp1 ); + rb11->setChecked( TRUE ); + (void)new TQRadioButton( "R&adiobutton 2", bgrp1 ); + (void)new TQRadioButton( "Ra&diobutton 3", bgrp1 ); // ------- second group @@ -131,12 +131,12 @@ protected slots: bgrp2->setExclusive( FALSE ); // insert 3 checkboxes - (void)new TQCheckBox( "&Checkbox 1", bgrp2 ); - TQCheckBox *cb12 = new TQCheckBox( "C&heckbox 2", bgrp2 ); - cb12->setChecked( TRUE ); - TQCheckBox *cb13 = new TQCheckBox( "Triple &State Button", bgrp2 ); - cb13->setTristate( TRUE ); - cb13->setChecked( TRUE ); + (void)new TQCheckBox( "&Checkbox 1", bgrp2 ); + TQCheckBox *cb12 = new TQCheckBox( "C&heckbox 2", bgrp2 ); + cb12->setChecked( TRUE ); + TQCheckBox *cb13 = new TQCheckBox( "Triple &State Button", bgrp2 ); + cb13->setTristate( TRUE ); + cb13->setChecked( TRUE ); // ------------ third group @@ -146,14 +146,14 @@ protected slots: bgrp3->setRadioButtonExclusive( TRUE ); // insert three radiobuttons - rb21 = new TQRadioButton( "Rad&iobutton 1", bgrp3 ); - rb22 = new TQRadioButton( "Radi&obutton 2", bgrp3 ); - rb23 = new TQRadioButton( "Radio&button 3", bgrp3 ); - rb23->setChecked( TRUE ); + rb21 = new TQRadioButton( "Rad&iobutton 1", bgrp3 ); + rb22 = new TQRadioButton( "Radi&obutton 2", bgrp3 ); + rb23 = new TQRadioButton( "Radio&button 3", bgrp3 ); + rb23->setChecked( TRUE ); // insert a checkbox... - state = new TQCheckBox( "E&nable Radiobuttons", bgrp3 ); - state->setChecked( TRUE ); + state = new TQCheckBox( "E&nable Radiobuttons", bgrp3 ); + state->setChecked( TRUE ); // ...and connect its TQ_SIGNAL clicked() with the TQ_SLOT slotChangeGrp3State() connect( state, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotChangeGrp3State() ) ); @@ -164,25 +164,25 @@ protected slots: box2->addWidget( bgrp4 ); // insert four pushbuttons... - (void)new TQPushButton( "&Push Button", bgrp4, "push" ); + (void)new TQPushButton( "&Push Button", bgrp4, "push" ); // now make the second one a toggle button - TQPushButton *tb2 = new TQPushButton( "&Toggle Button", bgrp4, "toggle" ); - tb2->setToggleButton( TRUE ); - tb2->setOn( TRUE ); + TQPushButton *tb2 = new TQPushButton( "&Toggle Button", bgrp4, "toggle" ); + tb2->setToggleButton( TRUE ); + tb2->setOn( TRUE ); // ... and make the third one a flat button - TQPushButton *tb3 = new TQPushButton( "&Flat Button", bgrp4, "flat" ); - tb3->setFlat(TRUE); + TQPushButton *tb3 = new TQPushButton( "&Flat Button", bgrp4, "flat" ); + tb3->setFlat(TRUE); // .. and the fourth a button with a menu - TQPushButton *tb4 = new TQPushButton( "Popup Button", bgrp4, "popup" ); + TQPushButton *tb4 = new TQPushButton( "Popup Button", bgrp4, "popup" ); TQPopupMenu *menu = new TQPopupMenu(tb4); menu->insertItem("Item1", 0); menu->insertItem("Item2", 1); menu->insertItem("Item3", 2); menu->insertItem("Item4", 3); - tb4->setPopup(menu); + tb4->setPopup(menu); } /* @@ -193,9 +193,9 @@ protected slots: void ButtonsGroups::slotChangeGrp3State() { - rb21->setEnabled( state->isChecked() ); - rb22->setEnabled( state->isChecked() ); - rb23->setEnabled( state->isChecked() ); + rb21->setEnabled( state->isChecked() ); + rb22->setEnabled( state->isChecked() ); + rb23->setEnabled( state->isChecked() ); } -- cgit v1.2.1