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 | 937b2991d8e78166eea904c80ad04d34607017a4 (patch) | |
tree | 2accb8161eab09df5d7a5484ea9ea080ad123168 /krdc | |
parent | dba26cb985af370c33d1767037851705cc561726 (diff) | |
download | tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.tar.gz tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krdc')
-rw-r--r-- | krdc/krdc.cpp | 4 | ||||
-rw-r--r-- | krdc/maindialogwidget.cpp | 14 | ||||
-rw-r--r-- | krdc/vnc/kvncview.cpp | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/krdc/krdc.cpp b/krdc/krdc.cpp index 5719ad65..e6384ccd 100644 --- a/krdc/krdc.cpp +++ b/krdc/krdc.cpp @@ -303,9 +303,9 @@ bool KRDC::parseHost(TQString &str, Protocol &prot, TQString &serverHost, int &s if(s.startsWith("smb:/")>0) { //we know it's more likely to be windows.. s = "rdp:/" + s.section("smb:/", 1); prot = PROTOCOL_RDP; - } else if(s.tqcontains("://") > 0) { + } else if(s.contains("://") > 0) { s = s.section("://",1); - } else if(s.tqcontains(":/") > 0) { + } else if(s.contains(":/") > 0) { s = s.section(":/", 1); } } diff --git a/krdc/maindialogwidget.cpp b/krdc/maindialogwidget.cpp index 2ce61c2e..a76e31d1 100644 --- a/krdc/maindialogwidget.cpp +++ b/krdc/maindialogwidget.cpp @@ -148,9 +148,9 @@ TQString MainDialogWidget::remoteHost() void MainDialogWidget::hostChanged( const TQString &text ) { - emit hostValid(text.tqcontains(TQRegExp(":[0-9]+$")) || - text.tqcontains(TQRegExp("^vnc:/.+")) || - text.tqcontains(TQRegExp("^rdp:/.+"))); + emit hostValid(text.contains(TQRegExp(":[0-9]+$")) || + text.contains(TQRegExp("^vnc:/.+")) || + text.contains(TQRegExp("^rdp:/.+"))); } void MainDialogWidget::toggleBrowsingArea() @@ -166,7 +166,7 @@ void MainDialogWidget::enableBrowsingArea( bool enable ) m_browsingPanel->show(); m_browsingPanel->setMaximumSize(1000, 1000); m_browsingPanel->setEnabled(true); - m_browseButton->setText(m_browseButton->text().tqreplace(">>", "<<")); + m_browseButton->setText(m_browseButton->text().replace(">>", "<<")); } else { @@ -174,7 +174,7 @@ void MainDialogWidget::enableBrowsingArea( bool enable ) m_browsingPanel->hide(); m_browsingPanel->setMaximumSize(0, 0); m_browsingPanel->setEnabled(false); - m_browseButton->setText(m_browseButton->text().tqreplace("<<", ">>")); + m_browseButton->setText(m_browseButton->text().replace("<<", ">>")); int h = tqminimumSize().height()-hOffset; setMinimumSize(tqminimumSize().width(), (h > 0) ? h : 0); resize(width(), height()-hOffset); @@ -344,11 +344,11 @@ void MainDialogWidget::lastSignalServices( bool success ) void MainDialogWidget::foundScopes( TQStringList scopeList ) { - int di = scopeList.tqfindIndex( DEFAULT_SCOPE ); + int di = scopeList.findIndex( DEFAULT_SCOPE ); if ( di >= 0 ) scopeList[ di ] = i18n( "default" ); - int ct = scopeList.tqfindIndex( m_scopeCombo->currentText() ); + int ct = scopeList.findIndex( m_scopeCombo->currentText() ); m_scopeCombo->clear(); m_scopeCombo->insertStringList( scopeList ); if ( ct >= 0 ) diff --git a/krdc/vnc/kvncview.cpp b/krdc/vnc/kvncview.cpp index e5add6c8..59ac4c9f 100644 --- a/krdc/vnc/kvncview.cpp +++ b/krdc/vnc/kvncview.cpp @@ -659,7 +659,7 @@ bool KVncView::x11Event(XEvent *e) { case XK_Shift_R: if (pressed) m_mods[s] = true; - else if (m_mods.tqcontains(s)) + else if (m_mods.contains(s)) m_mods.remove(s); else unpressModifiers(); |