summaryrefslogtreecommitdiffstats
path: root/libkipi/libkipi/interface.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-17 20:54:59 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-17 20:54:59 +0000
commit252b74ae40311e7e3e2ba9f4d4a0ebf2ead24472 (patch)
treedee6bb999e0d45ec90af181c90eae55427a8e24e /libkipi/libkipi/interface.cpp
parent7e1bbd9180475d0b1398d0e9e01919dd068fb56e (diff)
downloadlibkipi-252b74ae40311e7e3e2ba9f4d4a0ebf2ead24472.tar.gz
libkipi-252b74ae40311e7e3e2ba9f4d4a0ebf2ead24472.zip
TQt4 port libkipi
This enables compilation under Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/libkipi@1232471 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkipi/libkipi/interface.cpp')
-rw-r--r--libkipi/libkipi/interface.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/libkipi/libkipi/interface.cpp b/libkipi/libkipi/interface.cpp
index 8adc3b0..bc6a422 100644
--- a/libkipi/libkipi/interface.cpp
+++ b/libkipi/libkipi/interface.cpp
@@ -40,7 +40,7 @@
for albums. Thus before a plugin expect a decant value for the comment,
it should check whether KIPI::AlbumsHaveComments are set. It does so
using KIPI::Interface::hasFeature()
- When adding new items, remember to update "hasFeature( const QString& feature )"
+ When adding new items, remember to update "hasFeature( const TQString& feature )"
and the hello world plugin.
*/
@@ -95,8 +95,8 @@
*/
-KIPI::Interface::Interface(QObject *parent, const char *name )
- : QObject(parent, name)
+KIPI::Interface::Interface(TQObject *tqparent, const char *name )
+ : TQObject(tqparent, name)
{
}
@@ -120,7 +120,7 @@ bool KIPI::Interface::hasFeature( KIPI::Features feature )
return ( features() & feature ) != 0;
}
-bool KIPI::Interface::hasFeature( const QString& feature )
+bool KIPI::Interface::hasFeature( const TQString& feature )
{
if ( feature == "AlbumsHaveComments" )
return hasFeature( KIPI::AlbumsHaveComments );
@@ -153,7 +153,7 @@ bool KIPI::Interface::hasFeature( const QString& feature )
Returns true if the host application did accept the new image, otherwise err will be filled with
an error description.
*/
-bool KIPI::Interface::addImage( const KURL&, QString& /*err*/ )
+bool KIPI::Interface::addImage( const KURL&, TQString& /*err*/ )
{
kdWarning(51000) << "Interface::addImage should only be invoked if the host application supports the KIPI::Features\n"
"AcceptNewImages - if the host application do support that, then this function should\n"
@@ -190,10 +190,10 @@ KIPI::ImageCollection KIPI::Interface::currentSelection()
/**
Returns a list of albums.
*/
-QValueList<KIPI::ImageCollection> KIPI::Interface::allAlbums()
+TQValueList<KIPI::ImageCollection> KIPI::Interface::allAlbums()
{
// This implementation is just to be able to write documentation above.
- return QValueList<KIPI::ImageCollection>();
+ return TQValueList<KIPI::ImageCollection>();
}
@@ -211,10 +211,10 @@ int KIPI::Interface::features() const
to sort the files list before a treatment. The default implementation return,
the supported images formats by KDE.
*/
-QString KIPI::Interface::fileExtensions()
+TQString KIPI::Interface::fileExtensions()
{
- QStringList KDEImagetypes = KImageIO::mimeTypes( KImageIO::Reading );
- QString imagesFileFilter = KDEImagetypes.join(" ");
+ TQStringList KDEImagetypes = KImageIO::mimeTypes( KImageIO::Reading );
+ TQString imagesFileFilter = KDEImagetypes.join(" ");
return ( imagesFileFilter.lower() + " " + imagesFileFilter.upper() );
}