summaryrefslogtreecommitdiffstats
path: root/src/abakuslistview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-09 19:45:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-09 19:45:27 +0000
commitf4f8ac034fa04404e2fcd5029ba050c537c07d7a (patch)
tree0daa81b0533ce203c33d5571dcb842257dba4cd0 /src/abakuslistview.h
parent4488b6112c4e22493ed88c68035b980a5b42228d (diff)
downloadabakus-f4f8ac034fa04404e2fcd5029ba050c537c07d7a.tar.gz
abakus-f4f8ac034fa04404e2fcd5029ba050c537c07d7a.zip
TQt4 port Abakus
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/abakus@1231045 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/abakuslistview.h')
-rw-r--r--src/abakuslistview.h39
1 files changed, 21 insertions, 18 deletions
diff --git a/src/abakuslistview.h b/src/abakuslistview.h
index f0b9c4c..190c198 100644
--- a/src/abakuslistview.h
+++ b/src/abakuslistview.h
@@ -28,12 +28,13 @@ class KPopupMenu;
class ListView : public KListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- ListView(QWidget *parent, const char *name = 0);
+ ListView(TQWidget *tqparent, const char *name = 0);
protected:
- virtual QDragObject *dragObject();
+ virtual TQDragObject *dragObject();
/**
* Used to enable fancy popup handling support in subclasses. Subclasses
@@ -47,7 +48,7 @@ class ListView : public KListView
* If using the popup menu handling, the subclass needs to return a
* translated string of the form "Remove selected <itemtype>".
*/
- virtual QString removeItemString() const;
+ virtual TQString removeItemString() const;
/**
* If using the popup menu handling, the subclass needs to return a
@@ -55,7 +56,7 @@ class ListView : public KListView
* also appending a " (%n <itemtype>s), which you can use the @p count
* parameter for.
*/
- virtual QString removeAllItemsString(unsigned count) const;
+ virtual TQString removeAllItemsString(unsigned count) const;
protected slots:
/**
@@ -63,7 +64,7 @@ class ListView : public KListView
* function to remove the selected item, which is passed in as a
* parameter.
*/
- virtual void removeSelectedItem(QListViewItem *item);
+ virtual void removeSelectedItem(TQListViewItem *item);
/**
* If using the popup menu handling, the subclass needs to reimplement this
@@ -75,10 +76,10 @@ class ListView : public KListView
* If using the popup menu handling, this function may be called to
* determine whether the selected item given by @p item is removable.
*/
- virtual bool isItemRemovable(QListViewItem *item) const;
+ virtual bool isItemRemovable(TQListViewItem *item) const;
private slots:
- void rightClicked(QListViewItem *item, const QPoint &pt);
+ void rightClicked(TQListViewItem *item, const TQPoint &pt);
void removeSelected();
private:
@@ -92,7 +93,7 @@ class ListView : public KListView
class ValueListViewItem : public KListViewItem
{
public:
- ValueListViewItem (QListView *listView, const QString &name, const Abakus::number_t &value);
+ ValueListViewItem (TQListView *listView, const TQString &name, const Abakus::number_t &value);
// Will cause the list item to rethink the text.
void valueChanged();
@@ -110,17 +111,18 @@ class ValueListViewItem : public KListViewItem
class VariableListView : public ListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- VariableListView(QWidget *parent, const char *name = 0);
+ VariableListView(TQWidget *tqparent, const char *name = 0);
protected:
- virtual QString removeItemString() const;
- virtual QString removeAllItemsString(unsigned count) const;
- virtual bool isItemRemovable(QListViewItem *item) const;
+ virtual TQString removeItemString() const;
+ virtual TQString removeAllItemsString(unsigned count) const;
+ virtual bool isItemRemovable(TQListViewItem *item) const;
protected slots:
- virtual void removeSelectedItem(QListViewItem *item);
+ virtual void removeSelectedItem(TQListViewItem *item);
virtual void removeAllItems();
};
@@ -130,17 +132,18 @@ class VariableListView : public ListView
class FunctionListView : public ListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- FunctionListView(QWidget *parent, const char *name = 0);
+ FunctionListView(TQWidget *tqparent, const char *name = 0);
protected:
- virtual QString removeItemString() const;
- virtual QString removeAllItemsString(unsigned count) const;
- virtual bool isItemRemovable(QListViewItem *item) const;
+ virtual TQString removeItemString() const;
+ virtual TQString removeAllItemsString(unsigned count) const;
+ virtual bool isItemRemovable(TQListViewItem *item) const;
protected slots:
- virtual void removeSelectedItem(QListViewItem *item);
+ virtual void removeSelectedItem(TQListViewItem *item);
virtual void removeAllItems();
};