diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
commit | aa0726b20f398264f0a2abc60215be044b106f9c (patch) | |
tree | 070fdbc19a1106cfdd7f651a8ce76bb1b89a513d /src/basketlistview.h | |
parent | d3cf5b3e75aadc3b02d0b56f030d4c3f8c2c749d (diff) | |
download | basket-aa0726b20f398264f0a2abc60215be044b106f9c.tar.gz basket-aa0726b20f398264f0a2abc60215be044b106f9c.zip |
TQt4 port basket
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1232416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/basketlistview.h')
-rw-r--r-- | src/basketlistview.h | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/src/basketlistview.h b/src/basketlistview.h index 9a6a918..722ace3 100644 --- a/src/basketlistview.h +++ b/src/basketlistview.h @@ -22,39 +22,39 @@ #define BASKETLISTVIEW_H #include <klistview.h> -#include <qtimer.h> +#include <tqtimer.h> class Basket; -class BasketListViewItem : public QListViewItem +class BasketListViewItem : public TQListViewItem { public: /// CONSTRUCTOR AND DESTRUCTOR: - BasketListViewItem(QListView *parent, Basket *basket); - BasketListViewItem(QListViewItem *parent, Basket *basket); - BasketListViewItem(QListView *parent, QListViewItem *after, Basket *basket); - BasketListViewItem(QListViewItem *parent, QListViewItem *after, Basket *basket); + BasketListViewItem(TQListView *tqparent, Basket *basket); + BasketListViewItem(TQListViewItem *tqparent, Basket *basket); + BasketListViewItem(TQListView *tqparent, TQListViewItem *after, Basket *basket); + BasketListViewItem(TQListViewItem *tqparent, TQListViewItem *after, Basket *basket); ~BasketListViewItem(); /// - bool acceptDrop(const QMimeSource *mime) const; - void dropped(QDropEvent *event); + bool acceptDrop(const TQMimeSource *mime) const; + void dropped(TQDropEvent *event); Basket *basket() { return m_basket; } void setup(); - int width(const QFontMetrics &fontMetrics, const QListView *listView, int column) const; + int width(const TQFontMetrics &fontMetrics, const TQListView *listView, int column) const; BasketListViewItem* lastChild(); BasketListViewItem* prevSibling(); BasketListViewItem* shownItemAbove(); BasketListViewItem* shownItemBelow(); - QStringList childNamesTree(int deep = 0); + TQStringList childNamesTree(int deep = 0); void moveChildsBaskets(); void ensureVisible(); bool isShown(); bool isCurrentBasket(); - void paintCell(QPainter *painter, const QColorGroup &colorGroup, int column, int width, int align); - QString escapedName(const QString &string); + void paintCell(TQPainter *painter, const TQColorGroup &tqcolorGroup, int column, int width, int align); + TQString escapedName(const TQString &string); /// - QPixmap circledTextPixmap(const QString &text, int height, const QFont &font, const QColor &color); - QPixmap foundCountPixmap(bool isLoading, int countFound, bool childsAreLoading, int countChildsFound, const QFont &font, int height); + TQPixmap circledTextPixmap(const TQString &text, int height, const TQFont &font, const TQColor &color); + TQPixmap foundCountPixmap(bool isLoading, int countFound, bool childsAreLoading, int countChildsFound, const TQFont &font, int height); bool haveChildsLoading(); bool haveHiddenChildsLoading(); bool haveChildsLocked(); @@ -65,8 +65,8 @@ class BasketListViewItem : public QListViewItem void setUnderDrag(bool); bool isAbbreviated(); /// -// QDragObject* dragObject(); -// bool acceptDrop ( const QMimeSource * mime ) const; +// TQDragObject* dragObject(); +// bool acceptDrop ( const TQMimeSource * mime ) const; private: Basket *m_basket; int m_width; @@ -77,21 +77,22 @@ class BasketListViewItem : public QListViewItem class BasketTreeListView : public KListView { Q_OBJECT + TQ_OBJECT public: - BasketTreeListView(QWidget *parent = 0, const char *name = 0); - void contentsDragEnterEvent(QDragEnterEvent *event); + BasketTreeListView(TQWidget *tqparent = 0, const char *name = 0); + void contentsDragEnterEvent(TQDragEnterEvent *event); void removeExpands(); - void contentsDragLeaveEvent(QDragLeaveEvent *event); - void contentsDragMoveEvent(QDragMoveEvent *event); - void contentsDropEvent(QDropEvent *event); - void resizeEvent(QResizeEvent *event); - void paintEmptyArea(QPainter *painter, const QRect &rect); + void contentsDragLeaveEvent(TQDragLeaveEvent *event); + void contentsDragMoveEvent(TQDragMoveEvent *event); + void contentsDropEvent(TQDropEvent *event); + void resizeEvent(TQResizeEvent *event); + void paintEmptyArea(TQPainter *painter, const TQRect &rect); protected: - void focusInEvent(QFocusEvent*); - void viewportResizeEvent(QResizeEvent *event); + void focusInEvent(TQFocusEvent*); + void viewportResizeEvent(TQResizeEvent *event); private: - QTimer m_autoOpenTimer; - QListViewItem *m_autoOpenItem; + TQTimer m_autoOpenTimer; + TQListViewItem *m_autoOpenItem; private slots: void autoOpen(); private: |