summaryrefslogtreecommitdiffstats
path: root/src/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.h')
-rw-r--r--src/image.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/image.h b/src/image.h
index 9545500..264af1b 100644
--- a/src/image.h
+++ b/src/image.h
@@ -14,8 +14,8 @@
#ifndef IMAGE_H
#define IMAGE_H
-#include <qimage.h>
-#include <qstring.h>
+#include <tqimage.h>
+#include <tqstring.h>
class KPixmapIO;
@@ -28,7 +28,7 @@ namespace Tellico {
/**
* @author Robby Stephenson
*/
-class Image : public QImage {
+class Image : public TQImage {
friend class Tellico::ImageFactory;
friend class Tellico::FileHandler;
@@ -36,35 +36,35 @@ friend class Tellico::FileHandler;
public:
~Image();
- const QString& id() const { return m_id; };
- const QCString& format() const { return m_format; };
- QByteArray byteArray() const;
+ const TQString& id() const { return m_id; };
+ const TQCString& format() const { return m_format; };
+ TQByteArray byteArray() const;
bool isNull() const;
bool linkOnly() const { return m_linkOnly; }
void setLinkOnly(bool l) { m_linkOnly = l; }
- QPixmap convertToPixmap() const;
- QPixmap convertToPixmap(int width, int height) const;
+ TQPixmap convertToPixmap() const;
+ TQPixmap convertToPixmap(int width, int height) const;
- static QCString outputFormat(const QCString& inputFormat);
- static QByteArray byteArray(const QImage& img, const QCString& outputFormat);
- static QString idClean(const QString& id);
+ static TQCString outputFormat(const TQCString& inputFormat);
+ static TQByteArray byteArray(const TQImage& img, const TQCString& outputFormat);
+ static TQString idClean(const TQString& id);
private:
Image();
- explicit Image(const QString& filename);
- Image(const QImage& image, const QString& format);
- Image(const QByteArray& data, const QString& format, const QString& id);
+ explicit Image(const TQString& filename);
+ Image(const TQImage& image, const TQString& format);
+ Image(const TQByteArray& data, const TQString& format, const TQString& id);
//disable copy
Image(const Image&);
Image& operator=(const Image&);
- void setID(const QString& id);
+ void setID(const TQString& id);
void calculateID();
- QString m_id;
- QCString m_format;
+ TQString m_id;
+ TQCString m_format;
bool m_linkOnly : 1;
static KPixmapIO* s_pixmapIO;
@@ -75,10 +75,10 @@ class ImageInfo {
public:
ImageInfo() {}
explicit ImageInfo(const Image& img);
- ImageInfo(const QString& id, const QCString& format, int w, int h, bool link);
+ ImageInfo(const TQString& id, const TQCString& format, int w, int h, bool link);
bool isNull() const { return id.isEmpty(); }
- QString id;
- QCString format;
+ TQString id;
+ TQCString format;
bool linkOnly : 1;
int width(bool loadIfNecessary=true) const;