diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /filters/kpresenter/svg | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-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 'filters/kpresenter/svg')
-rw-r--r-- | filters/kpresenter/svg/svgexport.cc | 22 | ||||
-rw-r--r-- | filters/kpresenter/svg/svgexport.h | 5 |
2 files changed, 14 insertions, 13 deletions
diff --git a/filters/kpresenter/svg/svgexport.cc b/filters/kpresenter/svg/svgexport.cc index 2be6eea1..20cff46d 100644 --- a/filters/kpresenter/svg/svgexport.cc +++ b/filters/kpresenter/svg/svgexport.cc @@ -18,8 +18,8 @@ Boston, MA 02110-1301 USA. */ -#include <qpicture.h> -#include <qpainter.h> +#include <tqpicture.h> +#include <tqpainter.h> #include <kmessagebox.h> @@ -38,7 +38,7 @@ typedef KGenericFactory<SvgExport, KoFilter> SvgExportFactory; K_EXPORT_COMPONENT_FACTORY( libkpresentersvgexport, SvgExportFactory( "svgexport" ) ) -SvgExport::SvgExport(KoFilter *, const char *, const QStringList&) +SvgExport::SvgExport(KoFilter *, const char *, const TQStringList&) : KoFilter() { } @@ -48,8 +48,8 @@ SvgExport::~SvgExport() } -KoFilter::ConversionStatus -SvgExport::convert(const QCString& from, const QCString& to) +KoFilter::ConversiontqStatus +SvgExport::convert(const TQCString& from, const TQCString& to) { KoDocument * document = m_chain->inputDocument(); @@ -76,13 +76,13 @@ SvgExport::convert(const QCString& from, const QCString& to) kdWarning() << "Invalid document mimetype " << kpresenterdoc->mimeType() << endl; return KoFilter::NotImplemented; } - KoPageLayout layoutPage= kpresenterdoc->pageLayout(); - int width = int( layoutPage.ptWidth ); - int height = int( layoutPage.ptHeight ); + KoPageLayout tqlayoutPage= kpresenterdoc->pageLayout(); + int width = int( tqlayoutPage.ptWidth ); + int height = int( tqlayoutPage.ptHeight ); - QPicture picture; - QPainter painter(&picture); - QRect rect(QPoint(0, 0), QPoint(width, height)); + TQPicture picture; + TQPainter painter(&picture); + TQRect rect(TQPoint(0, 0), TQPoint(width, height)); kpresenterdoc->paintContent(painter, rect, false); painter.end(); diff --git a/filters/kpresenter/svg/svgexport.h b/filters/kpresenter/svg/svgexport.h index 7b4583b3..a11b20c2 100644 --- a/filters/kpresenter/svg/svgexport.h +++ b/filters/kpresenter/svg/svgexport.h @@ -26,12 +26,13 @@ class SvgExport : public KoFilter { Q_OBJECT + TQ_OBJECT public: - SvgExport(KoFilter *parent, const char *name, const QStringList&); + SvgExport(KoFilter *tqparent, const char *name, const TQStringList&); virtual ~SvgExport(); - virtual KoFilter::ConversionStatus convert(const QCString& from, const QCString& to); + virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to); }; #endif // __SVGEXPORT_H__ |