summaryrefslogtreecommitdiffstats
path: root/src/gui/imagewidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/imagewidget.h')
-rw-r--r--src/gui/imagewidget.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/src/gui/imagewidget.h b/src/gui/imagewidget.h
index 7780be4..76a7304 100644
--- a/src/gui/imagewidget.h
+++ b/src/gui/imagewidget.h
@@ -15,16 +15,16 @@
#define TELLICOIMAGEWIDGET_H
#include <kurl.h>
-#include <qwidget.h>
-#include <qpixmap.h>
-#include <qpoint.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
+#include <tqpoint.h>
-class QLabel;
-class QResizeEvent;
-class QMouseEvent;
-class QDragEnterEvent;
-class QDropEvent;
-class QCheckBox;
+class TQLabel;
+class TQResizeEvent;
+class TQMouseEvent;
+class TQDragEnterEvent;
+class TQDropEvent;
+class TQCheckBox;
namespace Tellico {
namespace GUI {
@@ -32,15 +32,16 @@ namespace Tellico {
/**
* @author Robby Stephenson
*/
-class ImageWidget : public QWidget {
+class ImageWidget : public TQWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- ImageWidget(QWidget* parent, const char* name = 0);
+ ImageWidget(TQWidget* tqparent, const char* name = 0);
virtual ~ImageWidget() {}
- const QString& id() const { return m_imageID; }
- void setImage(const QString& id);
+ const TQString& id() const { return m_imageID; }
+ void setImage(const TQString& id);
void setLinkOnlyChecked(bool l);
public slots:
@@ -50,11 +51,11 @@ signals:
void signalModified();
protected:
- virtual void resizeEvent(QResizeEvent* ev);
- virtual void mousePressEvent(QMouseEvent* ev);
- virtual void mouseMoveEvent(QMouseEvent* ev);
- virtual void dragEnterEvent(QDragEnterEvent* ev);
- virtual void dropEvent(QDropEvent* ev);
+ virtual void resizeEvent(TQResizeEvent* ev);
+ virtual void mousePressEvent(TQMouseEvent* ev);
+ virtual void mouseMoveEvent(TQMouseEvent* ev);
+ virtual void dragEnterEvent(TQDragEnterEvent* ev);
+ virtual void dropEvent(TQDropEvent* ev);
private slots:
void slotGetImage();
@@ -64,13 +65,13 @@ private:
void scale();
void loadImage(const KURL& url);
- QString m_imageID;
- QPixmap m_pixmap;
- QPixmap m_scaled;
- QLabel* m_label;
- QCheckBox* m_cbLinkOnly;
+ TQString m_imageID;
+ TQPixmap m_pixmap;
+ TQPixmap m_scaled;
+ TQLabel* m_label;
+ TQCheckBox* m_cbLinkOnly;
KURL m_originalURL;
- QPoint m_dragStart;
+ TQPoint m_dragStart;
};
} // end GUI namespace