summaryrefslogtreecommitdiffstats
path: root/src/libgui/watch_view.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/libgui/watch_view.h
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/libgui/watch_view.h')
-rw-r--r--src/libgui/watch_view.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/src/libgui/watch_view.h b/src/libgui/watch_view.h
index a7ac24c..f5090d1 100644
--- a/src/libgui/watch_view.h
+++ b/src/libgui/watch_view.h
@@ -22,62 +22,66 @@ namespace Register
class BaseListView : public ListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- BaseListView(QWidget *parent);
+ BaseListView(TQWidget *tqparent);
virtual void init(const Device::Data *data) = 0;
virtual void updateView() = 0;
private slots:
- virtual void itemClicked(int button, QListViewItem *item, const QPoint &p, int col) = 0;
- virtual void contextMenu(QListViewItem *item, const QPoint &p, int col) = 0;
+ virtual void itemClicked(int button, TQListViewItem *item, const TQPoint &p, int col) = 0;
+ virtual void contextMenu(TQListViewItem *item, const TQPoint &p, int col) = 0;
protected:
ListViewItemContainer *_root;
- QValueVector<Register::TypeData> _ids;
+ TQValueVector<Register::TypeData> _ids;
};
//-----------------------------------------------------------------------------
class RegisterListView : public BaseListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- RegisterListView(QWidget *parent);
+ RegisterListView(TQWidget *tqparent);
virtual void init(const Device::Data *data);
virtual void updateView();
private slots:
- virtual void itemClicked(int button, QListViewItem *item, const QPoint &p, int col);
- virtual void contextMenu(QListViewItem *, const QPoint &, int) {}
+ virtual void itemClicked(int button, TQListViewItem *item, const TQPoint &p, int col);
+ virtual void contextMenu(TQListViewItem *, const TQPoint &, int) {}
};
//-----------------------------------------------------------------------------
class WatchedListView : public BaseListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- WatchedListView(QWidget *parent);
- virtual QString tooltip(const QListViewItem &item, int col) const;
+ WatchedListView(TQWidget *tqparent);
+ virtual TQString tooltip(const TQListViewItem &item, int col) const;
virtual void init(const Device::Data *data);
virtual void updateView();
private slots:
- virtual void itemClicked(int button, QListViewItem *item, const QPoint &p, int col);
- virtual void contextMenu(QListViewItem *item, const QPoint &p, int col);
+ virtual void itemClicked(int button, TQListViewItem *item, const TQPoint &p, int col);
+ virtual void contextMenu(TQListViewItem *item, const TQPoint &p, int col);
private:
PopupContainer *_popup;
KPopupMenu *_formatPopup;
NumberBase _base;
- static KPopupMenu *appendFormatMenu(KPopupMenu *parent, uint offset);
+ static KPopupMenu *appendFormatMenu(KPopupMenu *tqparent, uint offset);
};
//-----------------------------------------------------------------------------
-class WatchView : public QWidget, public GenericView
+class WatchView : public TQWidget, public GenericView
{
Q_OBJECT
+ TQ_OBJECT
public:
- WatchView(QWidget *parent);
+ WatchView(TQWidget *tqparent);
void init(bool force);
public slots: