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/kmymoneychecklistitem.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/kmymoneychecklistitem.h')
-rw-r--r-- | kmymoney2/widgets/kmymoneychecklistitem.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/kmymoney2/widgets/kmymoneychecklistitem.h b/kmymoney2/widgets/kmymoneychecklistitem.h index 6a22ec9..34776ce 100644 --- a/kmymoney2/widgets/kmymoneychecklistitem.h +++ b/kmymoney2/widgets/kmymoneychecklistitem.h @@ -21,8 +21,8 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qobject.h> -#include <qlistview.h> +#include <tqobject.h> +#include <tqlistview.h> // ---------------------------------------------------------------------------- // KDE Includes @@ -33,34 +33,35 @@ class KMyMoneyListViewItem; /** - * This class implements a derived version of a QCheckListItem that + * This class implements a derived version of a TQCheckListItem that * allows the storage of an engine object id with the object and emits * a signal upon state change. * * @author Thomas Baumgart */ -class KMyMoneyCheckListItem : public QObject, public QCheckListItem +class KMyMoneyCheckListItem : public TQObject, public TQCheckListItem { friend class KMyMoneyListViewItem; Q_OBJECT + TQ_OBJECT public: - KMyMoneyCheckListItem(QListView *parent, const QString& txt, const QString& key, const QString& id, Type type = QCheckListItem::CheckBox); - KMyMoneyCheckListItem(QListView *parent, QListViewItem* after, const QString& txt, const QString& key, const QString& id, Type type = QCheckListItem::CheckBox); - KMyMoneyCheckListItem(QListViewItem *parent, const QString& txt, const QString& key, const QString& id, Type type = QCheckListItem::CheckBox); + KMyMoneyCheckListItem(TQListView *tqparent, const TQString& txt, const TQString& key, const TQString& id, Type type = TQCheckListItem::CheckBox); + KMyMoneyCheckListItem(TQListView *tqparent, TQListViewItem* after, const TQString& txt, const TQString& key, const TQString& id, Type type = TQCheckListItem::CheckBox); + KMyMoneyCheckListItem(TQListViewItem *tqparent, const TQString& txt, const TQString& key, const TQString& id, Type type = TQCheckListItem::CheckBox); ~KMyMoneyCheckListItem(); - const QString& id(void) const { return m_id; }; + const TQString& id(void) const { return m_id; }; /** * use my own paint method */ - void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment); + void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment); /** * use my own backgroundColor method */ - const QColor backgroundColor(); + const TQColor backgroundColor(); /** * see KListViewItem::isAlternate() @@ -73,7 +74,7 @@ public: * the constructor concatenated with the value returned by text(0) is returned. For @a column * equals to 1, the @a key as passed to the constructor except the first character is returned. */ - QString key(int column, bool ascending) const; + TQString key(int column, bool ascending) const; signals: void stateChanged(bool); @@ -82,8 +83,8 @@ protected: virtual void stateChange(bool); private: - QString m_key; - QString m_id; + TQString m_key; + TQString m_id; // copied from KListViewItem() unsigned int m_isOdd : 1; unsigned int m_isKnown : 1; |