diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/gui/imagewidget.h | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/imagewidget.h')
-rw-r--r-- | src/gui/imagewidget.h | 49 |
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 |