From 252b74ae40311e7e3e2ba9f4d4a0ebf2ead24472 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 17 May 2011 20:54:59 +0000 Subject: 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 --- libkipi/libkipi/interface.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libkipi/libkipi/interface.cpp') 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::Interface::allAlbums() +TQValueList KIPI::Interface::allAlbums() { // This implementation is just to be able to write documentation above. - return QValueList(); + return TQValueList(); } @@ -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() ); } -- cgit v1.2.3