diff options
Diffstat (limited to 'src/gui/microsettingsdlg.cpp')
-rw-r--r-- | src/gui/microsettingsdlg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/microsettingsdlg.cpp b/src/gui/microsettingsdlg.cpp index 78b585d..0b61cc5 100644 --- a/src/gui/microsettingsdlg.cpp +++ b/src/gui/microsettingsdlg.cpp @@ -176,7 +176,7 @@ void MicroSettingsDlg::reject() TQValidator::State MicroSettingsDlg::validatePinMapName( TQString & name ) const { - name.tqreplace( ' ', '_' ); + name.replace( ' ', '_' ); if ( name.isEmpty() ) return TQValidator::Intermediate; @@ -371,7 +371,7 @@ void MicroSettingsDlg::savePort( int row ) TQString typeText = m_portTypeEdit[row]->text(); bool typeOk = true; if ( typeText.tqstartsWith( "0x", false ) ) type = typeText.remove(0,2).toInt( &typeOk, 16 ); - else if ( typeText.tqcontains( TQRegExp("[^01]") ) ) type = typeText.toInt( &typeOk, 10 ); + else if ( typeText.contains( TQRegExp("[^01]") ) ) type = typeText.toInt( &typeOk, 10 ); else type = typeText.toInt( &typeOk, 2 ); if ( !typeOk ) @@ -384,7 +384,7 @@ void MicroSettingsDlg::savePort( int row ) TQString stateText = m_portStateEdit[row]->text(); bool stateOk = true; if ( stateText.tqstartsWith( "0x", false ) ) state = stateText.remove(0,2).toInt( &stateOk, 16 ); - else if ( stateText.tqcontains( TQRegExp("[^01]") ) ) state = stateText.toInt( &stateOk, 10 ); + else if ( stateText.contains( TQRegExp("[^01]") ) ) state = stateText.toInt( &stateOk, 10 ); else state = stateText.toInt( &stateOk, 2 ); if ( !stateOk ) |