From 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Jul 2011 06:40:27 +0000 Subject: 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 --- src/gui/imagewidget.h | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) (limited to 'src/gui/imagewidget.h') 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 -#include -#include -#include +#include +#include +#include -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 -- cgit v1.2.1