diff options
author | Michele Calgaro <[email protected]> | 2023-12-27 19:25:43 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-31 22:16:03 +0900 |
commit | ecca365daf06c711cf30f93f4c773dabf5642790 (patch) | |
tree | 0b2f6780f60fd7eb35c84cc899e7d51db189d67d /src/sql | |
parent | 1c30858477bcf3a4c74866d9a3d26f57753dd36a (diff) | |
download | tqt3-ecca365daf06c711cf30f93f4c773dabf5642790.tar.gz tqt3-ecca365daf06c711cf30f93f4c773dabf5642790.zip |
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit fb401a891f1b426e9419c0cb16403df407138611)
Diffstat (limited to 'src/sql')
-rw-r--r-- | src/sql/qdatatable.cpp | 40 | ||||
-rw-r--r-- | src/sql/qsqlquery.cpp | 2 |
2 files changed, 21 insertions, 21 deletions
diff --git a/src/sql/qdatatable.cpp b/src/sql/qdatatable.cpp index 6df0cce08..62abd2d45 100644 --- a/src/sql/qdatatable.cpp +++ b/src/sql/qdatatable.cpp @@ -280,8 +280,8 @@ void TQDataTable::init() d->falseTxt = tr( "False" ); d->datefmt = TQt::LocalDate; reset(); - connect( this, SIGNAL( selectionChanged() ), - SLOT( updateCurrentSelection())); + connect( this, TQ_SIGNAL( selectionChanged() ), + TQ_SLOT( updateCurrentSelection())); } /*! @@ -865,13 +865,13 @@ void TQDataTable::endEdit( int row, int col, bool, bool ) switch ( d->dat.mode() ) { case TQSql::Insert: if ( accept ) - TQTimer::singleShot( 0, this, SLOT( doInsertCurrent() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( doInsertCurrent() ) ); else endInsert(); break; case TQSql::Update: if ( accept ) - TQTimer::singleShot( 0, this, SLOT( doUpdateCurrent() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( doUpdateCurrent() ) ); else endUpdate(); break; @@ -1652,16 +1652,16 @@ void TQDataTable::loadNextPage() /*! \internal */ void TQDataTable::sliderPressed() { - disconnect( verticalScrollBar(), SIGNAL( valueChanged(int) ), - this, SLOT( loadNextPage() ) ); + disconnect( verticalScrollBar(), TQ_SIGNAL( valueChanged(int) ), + this, TQ_SLOT( loadNextPage() ) ); } /*! \internal */ void TQDataTable::sliderReleased() { loadNextPage(); - connect( verticalScrollBar(), SIGNAL( valueChanged(int) ), - this, SLOT( loadNextPage() ) ); + connect( verticalScrollBar(), TQ_SIGNAL( valueChanged(int) ), + this, TQ_SLOT( loadNextPage() ) ); } /*! @@ -1809,22 +1809,22 @@ void TQDataTable::setSize( TQSqlCursor* sql ) // ### what are the connect/disconnect calls doing here!? move to refresh() if ( sql->driver() && sql->driver()->hasFeature( TQSqlDriver::QuerySize ) ) { setVScrollBarMode( Auto ); - disconnect( verticalScrollBar(), SIGNAL( sliderPressed() ), - this, SLOT( sliderPressed() ) ); - disconnect( verticalScrollBar(), SIGNAL( sliderReleased() ), - this, SLOT( sliderReleased() ) ); - disconnect( verticalScrollBar(), SIGNAL( valueChanged(int) ), - this, SLOT( loadNextPage() ) ); + disconnect( verticalScrollBar(), TQ_SIGNAL( sliderPressed() ), + this, TQ_SLOT( sliderPressed() ) ); + disconnect( verticalScrollBar(), TQ_SIGNAL( sliderReleased() ), + this, TQ_SLOT( sliderReleased() ) ); + disconnect( verticalScrollBar(), TQ_SIGNAL( valueChanged(int) ), + this, TQ_SLOT( loadNextPage() ) ); if ( numRows() != sql->size() ) setNumRows( sql->size() ); } else { setVScrollBarMode( AlwaysOn ); - connect( verticalScrollBar(), SIGNAL( sliderPressed() ), - this, SLOT( sliderPressed() ) ); - connect( verticalScrollBar(), SIGNAL( sliderReleased() ), - this, SLOT( sliderReleased() ) ); - connect( verticalScrollBar(), SIGNAL( valueChanged(int) ), - this, SLOT( loadNextPage() ) ); + connect( verticalScrollBar(), TQ_SIGNAL( sliderPressed() ), + this, TQ_SLOT( sliderPressed() ) ); + connect( verticalScrollBar(), TQ_SIGNAL( sliderReleased() ), + this, TQ_SLOT( sliderReleased() ) ); + connect( verticalScrollBar(), TQ_SIGNAL( valueChanged(int) ), + this, TQ_SLOT( loadNextPage() ) ); setNumRows(0); loadNextPage(); } diff --git a/src/sql/qsqlquery.cpp b/src/sql/qsqlquery.cpp index 35d22b5d8..b1a25502b 100644 --- a/src/sql/qsqlquery.cpp +++ b/src/sql/qsqlquery.cpp @@ -58,7 +58,7 @@ TQSqlResultShared::TQSqlResultShared( TQSqlResult* result ): sqlResult(result) { if ( result ) - connect( result->driver(), SIGNAL(destroyed()), this, SLOT(slotResultDestroyed()) ); + connect( result->driver(), TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotResultDestroyed()) ); } /*! |