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/sql.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/sql.html') diff --git a/doc/html/sql.html b/doc/html/sql.html index a88b8cbf..79681587 100644 --- a/doc/html/sql.html +++ b/doc/html/sql.html @@ -1048,13 +1048,13 @@ the code below can be automatically generated by TQLabel *salaryLabel = new TQLabel( "Salary:", this ); TQLineEdit *salaryEdit = new TQLineEdit( this ); - TQGridLayout *grid = new TQGridLayout( this ); - grid->addWidget( forenameLabel, 0, 0 ); - grid->addWidget( forenameDisplay, 0, 1 ); - grid->addWidget( surnameLabel, 1, 0 ); - grid->addWidget( surnameDisplay, 1, 1 ); - grid->addWidget( salaryLabel, 2, 0 ); - grid->addWidget( salaryEdit, 2, 1 ); + TQGridLayout *grid = new TQGridLayout( this ); + grid->addWidget( forenameLabel, 0, 0 ); + grid->addWidget( forenameDisplay, 0, 1 ); + grid->addWidget( surnameLabel, 1, 0 ); + grid->addWidget( surnameDisplay, 1, 1 ); + grid->addWidget( salaryLabel, 2, 0 ); + grid->addWidget( salaryEdit, 2, 1 ); grid->activate(); TQSqlCursor staffCursor( "staff" ); @@ -1146,13 +1146,13 @@ calling TQLineEdit::setAlignment() an

        TQLineEdit   *forenameEdit  = new TQLineEdit( this );
 

        TQPushButton *saveButton    = new TQPushButton( "&Save", this );
-        connect( saveButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(save()) );
+        connect( saveButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(save()) );
 

The FormDialog constructor is similar to the one in the previous example. We have changed the forename and surname widgets to TQLineEdits to make them editable and have added a TQPushButton the user can click to save their updates. -

        grid->addWidget( saveButton,    3, 0 );
+

        grid->addWidget( saveButton,    3, 0 );
 

We add an extra row to the grid containing the save button.

        idIndex = staffCursor.index( "id" );
-- 
cgit v1.2.1