summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneytitlelabel.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/kmymoneytitlelabel.h')
-rw-r--r--kmymoney2/widgets/kmymoneytitlelabel.h55
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