diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | e05894553004a47b1e2f276bedcf5963b57a3932 (patch) | |
tree | 2c12af14a609c053131e3a463068fa7589e6ac6a /src/gui/newfiledlg.cpp | |
parent | 60cba8acf96454af45641d6190a3f2ac9f9ff9b0 (diff) | |
download | ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.tar.gz ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/newfiledlg.cpp')
-rw-r--r-- | src/gui/newfiledlg.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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") ); } |