diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/contexthelp.cpp | 4 | ||||
-rw-r--r-- | src/gui/doublespinbox.cpp | 2 | ||||
-rw-r--r-- | src/gui/itemselector.cpp | 14 | ||||
-rw-r--r-- | src/gui/logview.cpp | 12 | ||||
-rw-r--r-- | src/gui/microsettingsdlg.cpp | 6 | ||||
-rw-r--r-- | src/gui/newfiledlg.cpp | 14 | ||||
-rw-r--r-- | src/gui/oscilloscope.cpp | 4 | ||||
-rw-r--r-- | src/gui/projectdlgs.cpp | 2 | ||||
-rw-r--r-- | src/gui/settingsdlg.cpp | 2 |
9 files changed, 30 insertions, 30 deletions
diff --git a/src/gui/contexthelp.cpp b/src/gui/contexthelp.cpp index dacd1b9..e10c30d 100644 --- a/src/gui/contexthelp.cpp +++ b/src/gui/contexthelp.cpp @@ -100,8 +100,8 @@ void ContextHelp::setContextHelp(const TQString& name, const TQString& help) void ContextHelp::parseInfo( TQString &info ) { - info.tqreplace("<example>","<br><br><b>Example:</b><blockquote>"); - info.tqreplace("</example>","</blockquote>"); + info.replace("<example>","<br><br><b>Example:</b><blockquote>"); + info.replace("</example>","</blockquote>"); } #include "contexthelp.moc" diff --git a/src/gui/doublespinbox.cpp b/src/gui/doublespinbox.cpp index fb5efa4..6a384ed 100644 --- a/src/gui/doublespinbox.cpp +++ b/src/gui/doublespinbox.cpp @@ -123,7 +123,7 @@ double DoubleSpinBox::getMult() if ( nsSuffix.isEmpty() ) text.append( m_queuedSuffix ); else - text.tqreplace( nsSuffix, m_queuedSuffix ); + text.replace( nsSuffix, m_queuedSuffix ); } if ( text.length() == 0 ) diff --git a/src/gui/itemselector.cpp b/src/gui/itemselector.cpp index 32ff6da..38db8f3 100644 --- a/src/gui/itemselector.cpp +++ b/src/gui/itemselector.cpp @@ -88,14 +88,14 @@ void ItemSelector::addItem( const TQString & caption, const TQString & id, const { category.remove(0,1); TQString cat; - category.tqreplace( "\\/", "|" ); - int pos = category.tqfind('/'); + category.replace( "\\/", "|" ); + int pos = category.find('/'); if ( pos == -1 ) cat = category; else cat = category.left( pos ); - cat.tqreplace( "|", "/" ); + cat.replace( "|", "/" ); - if ( m_categories.tqfindIndex(cat) == -1 ) + if ( m_categories.findIndex(cat) == -1 ) { m_categories.append(cat); @@ -112,11 +112,11 @@ void ItemSelector::addItem( const TQString & caption, const TQString & id, const } else { - parentItem = (ILVItem*)tqfindItem( cat, 0 ); + parentItem = (ILVItem*)findItem( cat, 0 ); } category.remove( 0, pos ); - } while ( category.tqcontains('/') ); + } while ( category.contains('/') ); if ( !parentItem ) { @@ -139,7 +139,7 @@ void ItemSelector::writeOpenStates() const TQStringList::iterator end = m_categories.end(); for ( TQStringList::iterator it = m_categories.begin(); it != end; ++it ) { - TQListViewItem *item = tqfindItem( *it, 0 ); + TQListViewItem *item = findItem( *it, 0 ); if (item) { config->writeEntry( *it+"IsOpen", item->isOpen() ); } diff --git a/src/gui/logview.cpp b/src/gui/logview.cpp index 690b593..a158049 100644 --- a/src/gui/logview.cpp +++ b/src/gui/logview.cpp @@ -83,17 +83,17 @@ void LogView::slotParaClicked( int para, int /*pos*/ ) void LogView::tidyText( TQString &t ) { - t.tqreplace( "&", "&" ); - t.tqreplace( "<", "<" ); - t.tqreplace( ">", ">" ); + t.replace( "&", "&" ); + t.replace( "<", "<" ); + t.replace( ">", ">" ); } void LogView::untidyText( TQString &t ) { - t.tqreplace( "<", "<" ); - t.tqreplace( ">", ">" ); - t.tqreplace( "&", "&" ); + t.replace( "<", "<" ); + t.replace( ">", ">" ); + t.replace( "&", "&" ); } 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 ) diff --git a/src/gui/newfiledlg.cpp b/src/gui/newfiledlg.cpp index 8342976..79c35dd 100644 --- a/src/gui/newfiledlg.cpp +++ b/src/gui/newfiledlg.cpp @@ -93,28 +93,28 @@ void NewFileDlg::accept() const TQString fileText = m_pNewFileWidget->typeIconView->currentItem()->text(); - if ( fileText.tqcontains(".flowcode") ) + if ( fileText.contains(".flowcode") ) m_fileType = Document::dt_flowcode; - else if ( fileText.tqcontains(".circuit") ) + else if ( fileText.contains(".circuit") ) m_fileType = Document::dt_circuit; - else if ( fileText.tqcontains(".mechanics") ) + else if ( fileText.contains(".mechanics") ) m_fileType = Document::dt_mechanics; - else if ( fileText.tqcontains(".asm") ) + else if ( fileText.contains(".asm") ) { m_fileType = Document::dt_text; m_codeType = TextDocument::ct_asm; } - else if ( fileText.tqcontains(".basic") || fileText.tqcontains(".microbe") ) + else if ( fileText.contains(".basic") || fileText.contains(".microbe") ) { m_fileType = Document::dt_text; m_codeType = TextDocument::ct_microbe; } - else if (fileText.tqcontains(".c") ) + else if (fileText.contains(".c") ) { m_fileType = Document::dt_text; m_codeType = TextDocument::ct_c; @@ -138,7 +138,7 @@ void NewFileDlg::reject() void NewFileDlg::fileTypeChanged( TQIconViewItem *item ) { m_pNewFileWidget->m_pMicroSelect->setEnabled( - item->text().tqcontains(".flowcode") ); + item->text().contains(".flowcode") ); } diff --git a/src/gui/oscilloscope.cpp b/src/gui/oscilloscope.cpp index 50d1346..24495ab 100644 --- a/src/gui/oscilloscope.cpp +++ b/src/gui/oscilloscope.cpp @@ -189,7 +189,7 @@ ProbeData * Oscilloscope::registerProbe( Probe * probe ) void Oscilloscope::unregisterProbe( int id ) { - ProbeDataMap::iterator it = m_probeDataMap.tqfind(id); + ProbeDataMap::iterator it = m_probeDataMap.find(id); if ( it == m_probeDataMap.end() ) return; @@ -211,7 +211,7 @@ void Oscilloscope::unregisterProbe( int id ) ProbeData * Oscilloscope::probeData( int id ) const { - const ProbeDataMap::const_iterator bit = m_probeDataMap.tqfind(id); + const ProbeDataMap::const_iterator bit = m_probeDataMap.find(id); if ( bit != m_probeDataMap.end() ) return bit.data(); diff --git a/src/gui/projectdlgs.cpp b/src/gui/projectdlgs.cpp index 1cb560f..287b8c5 100644 --- a/src/gui/projectdlgs.cpp +++ b/src/gui/projectdlgs.cpp @@ -157,7 +157,7 @@ LinkerOptionsDlg::LinkerOptionsDlg( LinkerOptions * linkingOptions, TQWidget *tq { TQString relativeURL = KURL::relativeURL( pi->url(), *it ); TQCheckListItem * item = new TQCheckListItem( m_pWidget->m_pInternalLibraries, relativeURL, TQCheckListItem::CheckBox ); - item->setOn( linkedInternal.tqcontains(relativeURL) ); + item->setOn( linkedInternal.contains(relativeURL) ); } m_pExternalLibraryRequester = new KURLRequester( 0l ); diff --git a/src/gui/settingsdlg.cpp b/src/gui/settingsdlg.cpp index 641a9d2..5d9511e 100644 --- a/src/gui/settingsdlg.cpp +++ b/src/gui/settingsdlg.cpp @@ -212,7 +212,7 @@ class NameValidator : public TQValidator } virtual State validate( TQString & input, int & ) const { - return (input.isEmpty() || m_unallowed.tqcontains( input.lower() )) ? Intermediate : Acceptable; + return (input.isEmpty() || m_unallowed.contains( input.lower() )) ? Intermediate : Acceptable; } protected: |