summaryrefslogtreecommitdiffstats
path: root/kio/kfile/kfiledialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-15 19:11:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-15 19:11:41 +0000
commit374d939d8af431477ce2601815f0ba121b66871c (patch)
treead878478dcc0bedf51e3cffb2ed611ada422b290 /kio/kfile/kfiledialog.cpp
parentf9279733bf71e446933b46f40cbe9c9b9f57b778 (diff)
downloadtdelibs-374d939d8af431477ce2601815f0ba121b66871c.tar.gz
tdelibs-374d939d8af431477ce2601815f0ba121b66871c.zip
Allow kdelibs to function correctly with TQt for Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1220926 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/kfile/kfiledialog.cpp')
-rw-r--r--kio/kfile/kfiledialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kio/kfile/kfiledialog.cpp b/kio/kfile/kfiledialog.cpp
index 586b34d62..227bcffea 100644
--- a/kio/kfile/kfiledialog.cpp
+++ b/kio/kfile/kfiledialog.cpp
@@ -1595,7 +1595,7 @@ TQString KFileDialog::getSaveFileName(const TQString& dir, const TQString& filte
TQWidget *parent,
const TQString& caption)
{
- bool specialDir = dir.at(0) == ':';
+ bool specialDir = dir.tqat(0) == ':';
KFileDialog dlg( specialDir ? dir : TQString::null, filter, parent, "filedialog", true);
if ( !specialDir )
dlg.setSelection( dir ); // may also be a filename
@@ -1616,7 +1616,7 @@ TQString KFileDialog::getSaveFileNameWId(const TQString& dir, const TQString& fi
WId parent_id,
const TQString& caption)
{
- bool specialDir = dir.at(0) == ':';
+ bool specialDir = dir.tqat(0) == ':';
TQWidget* parent = TQT_TQWIDGET(TQWidget::find( parent_id ));
KFileDialog dlg( specialDir ? dir : TQString::null, filter, parent, "filedialog", true);
#ifdef Q_WS_X11
@@ -1644,7 +1644,7 @@ TQString KFileDialog::getSaveFileNameWId(const TQString& dir, const TQString& fi
KURL KFileDialog::getSaveURL(const TQString& dir, const TQString& filter,
TQWidget *parent, const TQString& caption)
{
- bool specialDir = dir.at(0) == ':';
+ bool specialDir = dir.tqat(0) == ':';
KFileDialog dlg(specialDir ? dir : TQString::null, filter, parent, "filedialog", true);
if ( !specialDir )
dlg.setSelection( dir ); // may also be a filename
@@ -1950,7 +1950,7 @@ void KFileDialog::updateAutoSelectExtension (void)
// first try X-KDE-NativeExtension
TQString nativeExtension = mime->property ("X-KDE-NativeExtension").toString ();
- if (nativeExtension.at (0) == '.')
+ if (nativeExtension.tqat (0) == '.')
{
d->extension = nativeExtension.lower ();
kdDebug (kfile_area) << "\tsetMimeFilter-style: native ext=\'"
@@ -2361,7 +2361,7 @@ void KFileDialog::setNonExtSelection()
TQString pattern, filename = locationEdit->currentText().stripWhiteSpace();
KServiceTypeFactory::self()->findFromPattern( filename, &pattern );
- if ( !pattern.isEmpty() && pattern.at( 0 ) == '*' && pattern.tqfind( '*' , 1 ) == -1 )
+ if ( !pattern.isEmpty() && pattern.tqat( 0 ) == '*' && pattern.tqfind( '*' , 1 ) == -1 )
locationEdit->lineEdit()->setSelection( 0, filename.length() - pattern.stripWhiteSpace().length()+1 );
else
{