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 | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /kexi/main/startup | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/main/startup')
-rw-r--r-- | kexi/main/startup/KexiStartup.cpp | 2 | ||||
-rw-r--r-- | kexi/main/startup/KexiStartupFileDialog.cpp | 12 | ||||
-rw-r--r-- | kexi/main/startup/KexiStartupFileDialog_win.cpp | 12 |
3 files changed, 13 insertions, 13 deletions
diff --git a/kexi/main/startup/KexiStartup.cpp b/kexi/main/startup/KexiStartup.cpp index 54d977e4..13becfc8 100644 --- a/kexi/main/startup/KexiStartup.cpp +++ b/kexi/main/startup/KexiStartup.cpp @@ -231,7 +231,7 @@ bool KexiStartupHandler::getAutoopenObjects(KCmdLineArgs *args, const TQCString if (stripQuotes(item, obj_name)) { type_name = defaultType; } - else if ((idx = item.tqfind(':'))!=-1) { + else if ((idx = item.find(':'))!=-1) { //option with type name specified: type_name = item.left(idx).lower(); obj_name = item.mid(idx+1); diff --git a/kexi/main/startup/KexiStartupFileDialog.cpp b/kexi/main/startup/KexiStartupFileDialog.cpp index 667c5288..ed4dcd40 100644 --- a/kexi/main/startup/KexiStartupFileDialog.cpp +++ b/kexi/main/startup/KexiStartupFileDialog.cpp @@ -142,21 +142,21 @@ void KexiStartupFileDialog::updateFilters() if (normalOpeningMode || normalSavingMode) { mime = KMimeType::mimeType( KexiDB::Driver::defaultFileBasedDriverMimeType() ); - if (mime && m_excludedMimeTypes.tqfind(mime->name())==m_excludedMimeTypes.end()) { + if (mime && m_excludedMimeTypes.find(mime->name())==m_excludedMimeTypes.end()) { filter += KexiUtils::fileDialogFilterString(mime); allfilters += mime->patterns(); } } if (normalOpeningMode || m_mode & SavingServerBasedDB) { mime = KMimeType::mimeType("application/x-kexiproject-shortcut"); - if (mime && m_excludedMimeTypes.tqfind(mime->name())==m_excludedMimeTypes.end()) { + if (mime && m_excludedMimeTypes.find(mime->name())==m_excludedMimeTypes.end()) { filter += KexiUtils::fileDialogFilterString(mime); allfilters += mime->patterns(); } } if (normalOpeningMode || m_mode & SavingServerBasedDB) { mime = KMimeType::mimeType("application/x-kexi-connectiondata"); - if (mime && m_excludedMimeTypes.tqfind(mime->name())==m_excludedMimeTypes.end()) { + if (mime && m_excludedMimeTypes.find(mime->name())==m_excludedMimeTypes.end()) { filter += KexiUtils::fileDialogFilterString(mime); allfilters += mime->patterns(); } @@ -165,7 +165,7 @@ void KexiStartupFileDialog::updateFilters() //! @todo hardcoded for MSA: if (normalOpeningMode) { mime = KMimeType::mimeType("application/x-msaccess"); - if (mime && m_excludedMimeTypes.tqfind(mime->name())==m_excludedMimeTypes.end()) { + if (mime && m_excludedMimeTypes.find(mime->name())==m_excludedMimeTypes.end()) { filter += KexiUtils::fileDialogFilterString(mime); allfilters += mime->patterns(); } @@ -174,14 +174,14 @@ void KexiStartupFileDialog::updateFilters() foreach (TQStringList::ConstIterator, it, m_additionalMimeTypes) { if (*it == "all/allfiles") continue; - if (m_excludedMimeTypes.tqfind(*it)!=m_excludedMimeTypes.end()) + if (m_excludedMimeTypes.find(*it)!=m_excludedMimeTypes.end()) continue; filter += KexiUtils::fileDialogFilterString(*it); mime = KMimeType::mimeType(*it); allfilters += mime->patterns(); } - if (m_excludedMimeTypes.tqfind("all/allfiles")==m_excludedMimeTypes.end()) + if (m_excludedMimeTypes.find("all/allfiles")==m_excludedMimeTypes.end()) filter += KexiUtils::fileDialogFilterString("all/allfiles"); // mime = KMimeType::mimeType("all/allfiles"); // if (mime) { diff --git a/kexi/main/startup/KexiStartupFileDialog_win.cpp b/kexi/main/startup/KexiStartupFileDialog_win.cpp index a51cd0c4..e716a607 100644 --- a/kexi/main/startup/KexiStartupFileDialog_win.cpp +++ b/kexi/main/startup/KexiStartupFileDialog_win.cpp @@ -60,7 +60,7 @@ KexiStartupFileDialogBase::KexiStartupFileDialogBase( init(_dirName, filter, tqparent); - //tqfind "OK" button + //find "OK" button TQObjectList *l = queryList( TQPUSHBUTTON_OBJECT_NAME_STRING, "OK", false ); m_okBtn = dynamic_cast<TQPushButton*>(l->first()); delete l; @@ -403,17 +403,17 @@ TQString KexiStartupFileDialogBase::currentFilter() const //TQt format: "some text (*.first *.second)" or "All (*)" //KDE format: "*.first *.second" or "*" TQString f = selectedFilter(); - if (f.tqfind('(')!=-1) - f = f.mid(f.tqfind('(')+1); - if (f.mid(f.tqfind(')')!=-1)) - f = f.left(f.tqfind(')')); + if (f.find('(')!=-1) + f = f.mid(f.find('(')+1); + if (f.mid(f.find(')')!=-1)) + f = f.left(f.find(')')); return f; } void KexiStartupFileDialogBase::setFilter(const TQString& filter) { d->kde_filters = filter; - int pos = d->kde_filters.tqfind('/'); + int pos = d->kde_filters.find('/'); // Check for an un-escaped '/', if found // interpret as a MIME filter. |