summaryrefslogtreecommitdiffstats
path: root/krita/core/kis_resource.h
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 /krita/core/kis_resource.h
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 'krita/core/kis_resource.h')
-rw-r--r--krita/core/kis_resource.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/krita/core/kis_resource.h b/krita/core/kis_resource.h
index d798d3cd2..6510be2c3 100644
--- a/krita/core/kis_resource.h
+++ b/krita/core/kis_resource.h
@@ -18,9 +18,9 @@
#ifndef KIS_RESOURCE_H_
#define KIS_RESOURCE_H_
-#include <qimage.h>
-#include <qobject.h>
-#include <qstring.h>
+#include <tqimage.h>
+#include <tqobject.h>
+#include <tqstring.h>
/**
@@ -29,9 +29,10 @@
*
* This replaces the KisKrayon facility that used to be present in Krayon.
*/
-class KisResource : public QObject {
- typedef QObject super;
+class KisResource : public TQObject {
+ typedef TQObject super;
Q_OBJECT
+ TQ_OBJECT
public:
@@ -41,7 +42,7 @@ public:
*
* @param filename the file name to save and load from.
*/
- KisResource(const QString& filename);
+ KisResource(const TQString& filename);
virtual ~KisResource();
public:
@@ -57,15 +58,15 @@ public:
virtual bool save() = 0;
/**
- * Returns a QImage representing this resource. This image could be null.
+ * Returns a TQImage representing this resource. This image could be null.
*/
- virtual QImage img() = 0;
+ virtual TQImage img() = 0;
public:
- QString filename() const;
- void setFilename(const QString& filename);
- QString name() const;
- void setName(const QString& name);
+ TQString filename() const;
+ void setFilename(const TQString& filename);
+ TQString name() const;
+ void setName(const TQString& name);
bool valid() const;
void setValid(bool valid);
@@ -74,8 +75,8 @@ private:
KisResource& operator=(const KisResource&);
private:
- QString m_name;
- QString m_filename;
+ TQString m_name;
+ TQString m_filename;
bool m_valid;
};