summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoFileDialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kofficecore/KoFileDialog.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kofficecore/KoFileDialog.cpp')
-rw-r--r--lib/kofficecore/KoFileDialog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/kofficecore/KoFileDialog.cpp b/lib/kofficecore/KoFileDialog.cpp
index b80c23e0..9f581a4e 100644
--- a/lib/kofficecore/KoFileDialog.cpp
+++ b/lib/kofficecore/KoFileDialog.cpp
@@ -25,13 +25,13 @@
#include <kdiroperator.h>
#include <kdebug.h>
-KoFileDialog::KoFileDialog(const QString& startDir, const QString& filter,
- QWidget *parent, const char *name,
+KoFileDialog::KoFileDialog(const TQString& startDir, const TQString& filter,
+ TQWidget *tqparent, const char *name,
bool modal)
- : KFileDialog( startDir, filter, parent, name, modal )
+ : KFileDialog( startDir, filter, tqparent, name, modal )
{
- connect( filterWidget, SIGNAL( activated( int) ),
- this, SLOT( slotChangedfilter( int ) ) );
+ connect( filterWidget, TQT_SIGNAL( activated( int) ),
+ this, TQT_SLOT( slotChangedfilter( int ) ) );
}
void KoFileDialog::slotChangedfilter( int index )
@@ -50,9 +50,9 @@ void KoFileDialog::slotChangedfilter( int index )
}
}
-void KoFileDialog::setSpecialMimeFilter( QStringList& mimeFilter,
- const QString& currentFormat, const int specialOutputFlag,
- const QString& nativeFormat,
+void KoFileDialog::setSpecialMimeFilter( TQStringList& mimeFilter,
+ const TQString& currentFormat, const int specialOutputFlag,
+ const TQString& nativeFormat,
int supportedSpecialFormats )
{
Q_ASSERT( !mimeFilter.isEmpty() );
@@ -77,7 +77,7 @@ void KoFileDialog::setSpecialMimeFilter( QStringList& mimeFilter,
}
// Insert numSpecialEntries entries with native mimetypes, for the special entries.
- QStringList::Iterator mimeFilterIt = mimeFilter.at( 1 );
+ TQStringList::Iterator mimeFilterIt = mimeFilter.at( 1 );
mimeFilter.insert( mimeFilterIt /* before 1 -> after 0 */, numSpecialEntries, nativeFormat );
// Fill in filter combo
@@ -90,9 +90,9 @@ void KoFileDialog::setSpecialMimeFilter( QStringList& mimeFilter,
int idx = 1; // 0 is the native format
if ( addUncompressed )
- filterWidget->changeItem( i18n("%1 (Uncompressed XML Files)").arg( type->comment() ), idx++ );
+ filterWidget->changeItem( i18n("%1 (Uncompressed XML Files)").tqarg( type->comment() ), idx++ );
if ( addFlatXML )
- filterWidget->changeItem( i18n("%1 (Flat XML File)").arg( type->comment() ), idx++ );
+ filterWidget->changeItem( i18n("%1 (Flat XML File)").tqarg( type->comment() ), idx++ );
// if you add an entry here, update numSpecialEntries above and specialEntrySelected() below
// For native format...
@@ -107,9 +107,9 @@ void KoFileDialog::setSpecialMimeFilter( QStringList& mimeFilter,
for (mimeFilterIt = mimeFilter.begin (); mimeFilterIt != mimeFilter.end (); ++mimeFilterIt, i++)
{
KMimeType::Ptr mime = KMimeType::mimeType (*mimeFilterIt);
- QString compatString = mime->property ("X-KDE-CompatibleApplication").toString ();
+ TQString compatString = mime->property ("X-KDE-CompatibleApplication").toString ();
if (!compatString.isEmpty ())
- filterWidget->changeItem (i18n ("%1 (%2 Compatible)").arg (mime->comment ()).arg (compatString), i);
+ filterWidget->changeItem (i18n ("%1 (%2 Compatible)").tqarg (mime->comment ()).tqarg (compatString), i);
}
}