diff options
| author | 2008-05-22 18:38:41 +0000 | |
|---|---|---|
| committer | 2008-05-22 18:38:41 +0000 | |
| commit | 93b866f75997694f2ae3714260343807dec86c23 (patch) | |
| tree | 9db5e01ceb733e3681e75419e897362b337baf21 /src/modules/options | |
| parent | compilation fix (diff) | |
| download | KVIrc-93b866f75997694f2ae3714260343807dec86c23.tar.gz KVIrc-93b866f75997694f2ae3714260343807dec86c23.tar.bz2 KVIrc-93b866f75997694f2ae3714260343807dec86c23.zip | |
more qt4 port
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1842 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/options')
| -rw-r--r-- | src/modules/options/dialog.cpp | 2 | ||||
| -rw-r--r-- | src/modules/options/optw_identity.cpp | 4 | ||||
| -rw-r--r-- | src/modules/options/optw_nickserv.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/options/dialog.cpp b/src/modules/options/dialog.cpp index 9a3a0dc19..6eaf68a66 100644 --- a/src/modules/options/dialog.cpp +++ b/src/modules/options/dialog.cpp @@ -330,7 +330,7 @@ bool KviOptionsDialog::recursiveSearch(KviOptionsListViewItem * pItem,const QStr bool bOk = true; for(int j=0;j<lKeywords.count();j++) { - if(szText.find(lKeywords.at(j),0,false) == -1) + if(szText.indexOf(lKeywords.at(j),0,Qt::CaseInsensitive) == -1) { bOk = false; break; diff --git a/src/modules/options/optw_identity.cpp b/src/modules/options/optw_identity.cpp index 649663da6..f6c1a9045 100644 --- a/src/modules/options/optw_identity.cpp +++ b/src/modules/options/optw_identity.cpp @@ -584,13 +584,13 @@ void KviIdentityAvatarOptionsWidget::chooseAvatar() { // local path, loaded QString tmp = szCurrent; - int idx = tmp.findRev("/"); + int idx = tmp.lastIndexOf("/"); if(idx != -1) { szCurrent = tmp.right(tmp.length() - (idx + 1)); tmp = szCurrent; } - idx = tmp.findRev("\\"); + idx = tmp.lastIndexOf("\\"); if(idx != -1) { szCurrent = tmp.right(tmp.length() - (idx + 1)); diff --git a/src/modules/options/optw_nickserv.cpp b/src/modules/options/optw_nickserv.cpp index 2dc87d151..864038db4 100644 --- a/src/modules/options/optw_nickserv.cpp +++ b/src/modules/options/optw_nickserv.cpp @@ -160,7 +160,7 @@ bool KviNickServRuleEditor::validate() return false; } - if(s.find(QChar(' ')) != -1) + if(s.indexOf(QChar(' ')) != -1) { QMessageBox::warning(this,m,__tr2qs_ctx("The Nickname field can't contain spaces!","options"),o); return false; |
