summaryrefslogtreecommitdiffstats
path: root/kio/kfile/kfilefiltercombo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
commitf7e71d47719ab6094cf4a9fafffa5ea351973522 (patch)
tree30834aa632d442019e14f88685001d94657d060b /kio/kfile/kfilefiltercombo.cpp
parentb31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff)
downloadtdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz
tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/kfile/kfilefiltercombo.cpp')
-rw-r--r--kio/kfile/kfilefiltercombo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kio/kfile/kfilefiltercombo.cpp b/kio/kfile/kfilefiltercombo.cpp
index c865cc0e1..771cc76b0 100644
--- a/kio/kfile/kfilefiltercombo.cpp
+++ b/kio/kfile/kfilefiltercombo.cpp
@@ -68,11 +68,11 @@ void KFileFilterCombo::setFilter(const TQString& filter)
if (!filter.isEmpty()) {
TQString tmp = filter;
- int index = tmp.find('\n');
+ int index = tmp.tqfind('\n');
while (index > 0) {
filters.append(tmp.left(index));
tmp = tmp.mid(index + 1);
- index = tmp.find('\n');
+ index = tmp.tqfind('\n');
}
filters.append(tmp);
}
@@ -82,7 +82,7 @@ void KFileFilterCombo::setFilter(const TQString& filter)
TQStringList::ConstIterator it;
TQStringList::ConstIterator end(filters.end());
for (it = filters.begin(); it != end; ++it) {
- int tab = (*it).find('|');
+ int tab = (*it).tqfind('|');
insertItem((tab < 0) ? *it :
(*it).mid(tab + 1));
}
@@ -101,7 +101,7 @@ TQString KFileFilterCombo::currentFilter() const
}
}
- int tab = f.find('|');
+ int tab = f.tqfind('|');
if (tab < 0)
return f;
else
@@ -129,7 +129,7 @@ void KFileFilterCombo::setMimeFilter( const TQStringList& types,
{
clear();
filters.clear();
- TQString delim = TQString::fromLatin1(", ");
+ TQString delim = TQString::tqfromLatin1(", ");
d->hasAllSupportedFiles = false;
m_allTypes = defaultType.isEmpty() && (types.count() > 1);
@@ -179,7 +179,7 @@ void KFileFilterCombo::slotFilterChanged()
bool KFileFilterCombo::eventFilter( TQObject *o, TQEvent *e )
{
- if ( o == lineEdit() && e->type() == TQEvent::FocusOut ) {
+ if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(lineEdit()) && e->type() == TQEvent::FocusOut ) {
if ( currentText() != d->lastFilter )
emit filterChanged();
}