From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* 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 e0b81f3d4..6b5687d42 100644 --- a/doc/html/sql.html +++ b/doc/html/sql.html @@ -965,7 +965,7 @@ examples provides additional information. TQDataTable *staffTable = new TQDataTable( &staffCursor, TRUE ); app.setMainWidget( staffTable ); staffTable->refresh(); - staffTable->show(); + staffTable->show(); return app.exec(); } @@ -998,7 +998,7 @@ function. staffTable->setSort( order ); staffTable->refresh(); - staffTable->show(); + staffTable->show();

From sql/overview/table2/main.cpp

We create an empty TQDataTable which we make into our main widget and @@ -1219,7 +1219,7 @@ we will only cover the differences here. The full source is in TQWidget *parent=0, const char *name=0 ); + CustomEdit( TQWidget *parent=0, const char *name=0 ); TQString upperLine() const; void setUpperLine( const TQString &line ); public slots: @@ -1237,7 +1237,7 @@ also created a slot, changed(). to our FormDialog's private data.

-

    CustomEdit::CustomEdit( TQWidget *parent, const char *name ) :
+
    CustomEdit::CustomEdit( TQWidget *parent, const char *name ) :
         TQLineEdit( parent, name )
     {
         connect( this, TQ_SIGNAL(textChanged(const TQString &)),
@@ -1300,7 +1300,7 @@ can use a custom editor.
         TQ_OBJECT
         TQ_PROPERTY( int statusid READ statusId WRITE setStatusId )
         public:
-            StatusPicker( TQWidget *parent=0, const char *name=0 );
+            StatusPicker( TQWidget *parent=0, const char *name=0 );
             int statusId() const;
             void setStatusId( int id );
         private:
@@ -1316,14 +1316,14 @@ to/from the statusids that we will list in the combobox.
     {
         TQ_OBJECT
         public:
-            TQWidget *createEditor( TQWidget *parent, const TQSqlField *field );
+            TQWidget *createEditor( TQWidget *parent, const TQSqlField *field );
     };
 

We also need to subclass TQSqlEditorFactory declaring a createEditor() function since that is the only function we need to reimplement.

-

    StatusPicker::StatusPicker( TQWidget *parent, const char *name )
+
    StatusPicker::StatusPicker( TQWidget *parent, const char *name )
         : TQComboBox( parent, name )
     {
         TQSqlCursor cur( "status" );
@@ -1380,7 +1380,7 @@ to subclass TQDataTable and reimplement the paintField() function.
     public:
         CustomTable(
                 TQSqlCursor *cursor, bool autoPopulate = FALSE,
-                TQWidget * parent = 0, const char * name = 0 ) :
+                TQWidget * parent = 0, const char * name = 0 ) :
             TQDataTable( cursor, autoPopulate, parent, name ) {}
         void paintField(
                 TQPainter * p, const TQSqlField* field, const TQRect & cr, bool );
@@ -1443,7 +1443,7 @@ staffTable from being a TQDataTable to being a CustomTable.
             invoiceItemTable->addColumn( "paiddate", "Paid" );
 
             invoiceItemTable->refresh();
-            invoiceItemTable->show();
+            invoiceItemTable->show();
 
             return app.exec();
         }
-- 
cgit v1.2.3