diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/widgets/kmymoneytitlelabel.h | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip |
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/widgets/kmymoneytitlelabel.h')
-rw-r--r-- | kmymoney2/widgets/kmymoneytitlelabel.h | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/kmymoney2/widgets/kmymoneytitlelabel.h b/kmymoney2/widgets/kmymoneytitlelabel.h index 08f9302..2990205 100644 --- a/kmymoney2/widgets/kmymoneytitlelabel.h +++ b/kmymoney2/widgets/kmymoneytitlelabel.h @@ -21,10 +21,10 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qlabel.h> -#include <qimage.h> -#include <qcolor.h> -class QPixmap; +#include <tqlabel.h> +#include <tqimage.h> +#include <tqcolor.h> +class TQPixmap; // ---------------------------------------------------------------------------- // KDE Includes @@ -35,44 +35,45 @@ class QPixmap; /** * @author ace jones */ -class KMyMoneyTitleLabel : public QLabel +class KMyMoneyTitleLabel : public TQLabel { Q_OBJECT - Q_PROPERTY( QString leftImageFile READ leftImageFile WRITE setLeftImageFile DESIGNABLE true ) - Q_PROPERTY( QString rightImageFile READ rightImageFile WRITE setRightImageFile DESIGNABLE true ) - Q_PROPERTY( QColor bgColor READ bgColor WRITE setBgColor DESIGNABLE true ) - Q_PROPERTY( QString text READ text WRITE setText DESIGNABLE true ) + TQ_OBJECT + TQ_PROPERTY( TQString leftImageFile READ leftImageFile WRITE setLeftImageFile DESIGNABLE true ) + TQ_PROPERTY( TQString rightImageFile READ rightImageFile WRITE setRightImageFile DESIGNABLE true ) + TQ_PROPERTY( TQColor bgColor READ bgColor WRITE setBgColor DESIGNABLE true ) + TQ_PROPERTY( TQString text READ text WRITE setText DESIGNABLE true ) public: - KMyMoneyTitleLabel(QWidget *parent = 0, const char *name = 0); + KMyMoneyTitleLabel(TQWidget *tqparent = 0, const char *name = 0); ~KMyMoneyTitleLabel(); - void setBgColor(const QColor& _color) { m_bgColor = _color; } - void setLeftImageFile(const QString& _file); - void setRightImageFile(const QString& _file); + void setBgColor(const TQColor& _color) { m_bgColor = _color; } + void setLeftImageFile(const TQString& _file); + void setRightImageFile(const TQString& _file); - const QString& leftImageFile(void) const { return m_leftImageFile; } - const QString& rightImageFile(void) const { return m_rightImageFile; } - QColor bgColor(void) const { return m_bgColor; } - QString text(void) const { return m_text; } + const TQString& leftImageFile(void) const { return m_leftImageFile; } + const TQString& rightImageFile(void) const { return m_rightImageFile; } + TQColor bgColor(void) const { return m_bgColor; } + TQString text(void) const { return m_text; } public slots: - virtual void setText(const QString& txt); + virtual void setText(const TQString& txt); protected: void updatePixmap(void); - virtual void resizeEvent ( QResizeEvent * ); - void drawContents(QPainter *); + virtual void resizeEvent ( TQResizeEvent * ); + void drawContents(TQPainter *); private: - QImage m_leftImage; - QImage m_rightImage; - QColor m_bgColor; - QColor m_textColor; - QString m_text; + TQImage m_leftImage; + TQImage m_rightImage; + TQColor m_bgColor; + TQColor m_textColor; + TQString m_text; - QString m_leftImageFile; - QString m_rightImageFile; + TQString m_leftImageFile; + TQString m_rightImageFile; }; #endif |