diff options
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/qtable.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/table/qtable.cpp b/src/table/qtable.cpp index 94ee53938..40f407bfe 100644 --- a/src/table/qtable.cpp +++ b/src/table/qtable.cpp @@ -819,7 +819,7 @@ a TQLineEdit you will need to reimplement this function. void TQTableItem::setContentFromEditor( TQWidget *w ) { - TQLineEdit *le = ::qt_cast<TQLineEdit*>(w); + TQLineEdit *le = ::tqt_cast<TQLineEdit*>(w); if ( le ) { TQString input = le->text(); if ( le->validator() ) @@ -1280,7 +1280,7 @@ TQWidget *TQComboTableItem::createEditor() const void TQComboTableItem::setContentFromEditor( TQWidget *w ) { - TQComboBox *cb = ::qt_cast<TQComboBox*>(w); + TQComboBox *cb = ::tqt_cast<TQComboBox*>(w); if ( cb ) { entries.clear(); for ( int i = 0; i < cb->count(); ++i ) @@ -1326,7 +1326,7 @@ void TQComboTableItem::paint( TQPainter *p, const TQColorGroup &cg, void TQComboTableItem::setCurrentItem( int i ) { TQWidget *w = table()->cellWidget( row(), col() ); - TQComboBox *cb = ::qt_cast<TQComboBox*>(w); + TQComboBox *cb = ::tqt_cast<TQComboBox*>(w); if ( cb ) { cb->setCurrentItem( i ); current = i; @@ -1363,7 +1363,7 @@ void TQComboTableItem::setCurrentItem( const TQString &s ) int TQComboTableItem::currentItem() const { TQWidget *w = table()->cellWidget( row(), col() ); - TQComboBox *cb = ::qt_cast<TQComboBox*>(w); + TQComboBox *cb = ::tqt_cast<TQComboBox*>(w); if ( cb ) return cb->currentItem(); return current; @@ -1378,7 +1378,7 @@ int TQComboTableItem::currentItem() const TQString TQComboTableItem::currentText() const { TQWidget *w = table()->cellWidget( row(), col() ); - TQComboBox *cb = ::qt_cast<TQComboBox*>(w); + TQComboBox *cb = ::tqt_cast<TQComboBox*>(w); if ( cb ) return cb->currentText(); return *entries.at( current ); @@ -1391,7 +1391,7 @@ TQString TQComboTableItem::currentText() const int TQComboTableItem::count() const { TQWidget *w = table()->cellWidget( row(), col() ); - TQComboBox *cb = ::qt_cast<TQComboBox*>(w); + TQComboBox *cb = ::tqt_cast<TQComboBox*>(w); if ( cb ) return cb->count(); return (int)entries.count(); //### size_t/int cast @@ -1406,7 +1406,7 @@ int TQComboTableItem::count() const TQString TQComboTableItem::text( int i ) const { TQWidget *w = table()->cellWidget( row(), col() ); - TQComboBox *cb = ::qt_cast<TQComboBox*>(w); + TQComboBox *cb = ::tqt_cast<TQComboBox*>(w); if ( cb ) return cb->text( i ); return *entries.at( i ); @@ -1523,7 +1523,7 @@ void TQCheckTableItem::setText( const TQString &t ) { TQTableItem::setText( t ); TQWidget *w = table()->cellWidget( row(), col() ); - TQCheckBox *cb = ::qt_cast<TQCheckBox*>(w); + TQCheckBox *cb = ::tqt_cast<TQCheckBox*>(w); if ( cb ) cb->setText( t ); } @@ -1546,7 +1546,7 @@ TQWidget *TQCheckTableItem::createEditor() const void TQCheckTableItem::setContentFromEditor( TQWidget *w ) { - TQCheckBox *cb = ::qt_cast<TQCheckBox*>(w); + TQCheckBox *cb = ::tqt_cast<TQCheckBox*>(w); if ( cb ) checked = cb->isChecked(); } @@ -1599,7 +1599,7 @@ void TQCheckTableItem::setChecked( bool b ) checked = b; table()->updateCell( row(), col() ); TQWidget *w = table()->cellWidget( row(), col() ); - TQCheckBox *cb = ::qt_cast<TQCheckBox*>(w); + TQCheckBox *cb = ::tqt_cast<TQCheckBox*>(w); if ( cb ) cb->setChecked( b ); } @@ -1618,7 +1618,7 @@ bool TQCheckTableItem::isChecked() const // #### and end up in an infinite loop that way // table()->updateCell( row(), col() ); TQWidget *w = table()->cellWidget( row(), col() ); - TQCheckBox *cb = ::qt_cast<TQCheckBox*>(w); + TQCheckBox *cb = ::tqt_cast<TQCheckBox*>(w); if ( cb ) return cb->isChecked(); return checked; @@ -3591,7 +3591,7 @@ void TQTable::selectRow( int row ) return; bool isDataTable = FALSE; #ifndef QT_NO_SQL - isDataTable = ::qt_cast<TQDataTable*>(this) != 0; + isDataTable = ::tqt_cast<TQDataTable*>(this) != 0; #endif if ( isDataTable || selectionMode() == SingleRow ) { setCurrentCell( row, currentColumn() ); @@ -3701,7 +3701,7 @@ void TQTable::contentsMousePressEventEx( TQMouseEvent* e ) TQTableItem *itm = item( tmpRow, tmpCol ); if ( itm && itm->editType() == TQTableItem::WhenCurrent ) { TQWidget *w = cellWidget( tmpRow, tmpCol ); - if ( ::qt_cast<TQComboBox*>(w) || ::qt_cast<TQButton*>(w) ) { + if ( ::tqt_cast<TQComboBox*>(w) || ::tqt_cast<TQButton*>(w) ) { TQMouseEvent ev( e->type(), w->mapFromGlobal( e->globalPos() ), e->globalPos(), e->button(), e->state() ); TQApplication::sendPostedEvents( w, 0 ); @@ -5210,7 +5210,7 @@ void TQTable::setCellContentFromEditor( int row, int col ) if ( i ) { i->setContentFromEditor( editor ); } else { - TQLineEdit *le = ::qt_cast<TQLineEdit*>(editor); + TQLineEdit *le = ::tqt_cast<TQLineEdit*>(editor); if ( le ) setText( row, col, le->text() ); } |