summaryrefslogtreecommitdiffstats
path: root/src/gvcore/documentimpl.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
commitbf7f88413be3831a9372d323d02fc0335b9f9188 (patch)
tree516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/documentimpl.h
parente238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff)
downloadgwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz
gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/documentimpl.h')
-rw-r--r--src/gvcore/documentimpl.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/gvcore/documentimpl.h b/src/gvcore/documentimpl.h
index 94e23f4..c6e5697 100644
--- a/src/gvcore/documentimpl.h
+++ b/src/gvcore/documentimpl.h
@@ -1,7 +1,7 @@
// vim: set tabstop=4 shiftwidth=4 noexpandtab
/*
Gwenview - A simple image viewer for KDE
-Copyright 2000-2004 Aurélien Gâteau
+Copyright 2000-2004 Aur�lien G�teau
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -21,9 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef DOCUMENTIMPL_H
#define DOCUMENTIMPL_H
-// Qt
-#include <qobject.h>
-#include <qrect.h>
+// TQt
+#include <tqobject.h>
+#include <tqrect.h>
// Local
#include "document.h"
@@ -31,8 +31,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Gwenview {
-class DocumentImpl : public QObject {
+class DocumentImpl : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
DocumentImpl(Document* document);
virtual ~DocumentImpl();
@@ -43,9 +44,9 @@ public:
virtual void init();
void switchToImpl(DocumentImpl*);
- void setImage(QImage);
- void setMimeType(const QString&);
- void setImageFormat(const QCString&);
+ void setImage(TQImage);
+ void setMimeType(const TQString&);
+ void setImageFormat(const TQCString&);
void setFileSize(int) const;
/**
@@ -53,18 +54,18 @@ public:
*/
void emitImageRectUpdated();
- virtual QString aperture() const;
- virtual QString exposureTime() const;
- virtual QString iso() const;
- virtual QString focalLength() const;
+ virtual TQString aperture() const;
+ virtual TQString exposureTime() const;
+ virtual TQString iso() const;
+ virtual TQString focalLength() const;
- virtual QString comment() const;
+ virtual TQString comment() const;
virtual Document::CommentState commentState() const;
- virtual void setComment(const QString&);
+ virtual void setComment(const TQString&);
virtual int duration() const;
virtual void transform(ImageUtils::Orientation);
- virtual QString save(const KURL&, const QCString& format) const;
+ virtual TQString save(const KURL&, const TQCString& format) const;
virtual MimeTypeUtils::Kind urlKind() const=0;
@@ -74,7 +75,7 @@ public:
signals:
void finished(bool success);
void sizeUpdated();
- void rectUpdated(const QRect&);
+ void rectUpdated(const TQRect&);
protected:
Document* mDocument;
@@ -84,7 +85,7 @@ class DocumentEmptyImpl : public DocumentImpl {
public:
DocumentEmptyImpl(Document* document)
: DocumentImpl(document) {
- setImage(QImage());
+ setImage(TQImage());
setImageFormat(0);
setMimeType("application/x-zerosize");
}