summaryrefslogtreecommitdiffstats
path: root/src/dndlistview.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-07-27 16:57:53 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-27 18:48:46 +0200
commit7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch)
tree4655c7263ca5c64d23d10167cb459dd9cb253815 /src/dndlistview.h
parent88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff)
downloadtork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz
tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip
Initial TQt conversion
Diffstat (limited to 'src/dndlistview.h')
-rw-r--r--src/dndlistview.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/dndlistview.h b/src/dndlistview.h
index 5e7c441..06a92de 100644
--- a/src/dndlistview.h
+++ b/src/dndlistview.h
@@ -22,60 +22,60 @@
#ifndef _DNDLISTVIEW_H_
#define _DNDLISTVIEW_H_
-#include <qlistview.h>
-#include <qdragobject.h>
+#include <ntqlistview.h>
+#include <ntqdragobject.h>
-class QDragEnterEvent;
-class QDragDropEvent;
+class TQDragEnterEvent;
+class TQDragDropEvent;
-class DndListView : public QListView
+class DndListView : public TQListView
{
Q_OBJECT
public:
- DndListView( QWidget * parent = 0, const char * name = 0, WFlags f = 0 );
- QPoint m_mousepos;
- QPoint getMousePos();
+ DndListView( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
+ TQPoint m_mousepos;
+ TQPoint getMousePos();
bool recentDropEvent() { return m_recentDrop; };
- void contentsMouseReleaseEvent( QMouseEvent *e );
+ void contentsMouseReleaseEvent( TQMouseEvent *e );
protected:
- void contentsDragEnterEvent( QDragEnterEvent *e );
- void contentsDragMoveEvent( QDragMoveEvent *e );
- void contentsDragLeaveEvent( QDragLeaveEvent *e );
- void contentsDropEvent( QDropEvent *e );
- void contentsMouseMoveEvent( QMouseEvent *e );
- void contentsMousePressEvent( QMouseEvent *e );
- void mouseReleaseEvent( QMouseEvent *e );
- void timerEvent( QTimerEvent * );
- void viewportPaintEvent( QPaintEvent *e );
+ void contentsDragEnterEvent( TQDragEnterEvent *e );
+ void contentsDragMoveEvent( TQDragMoveEvent *e );
+ void contentsDragLeaveEvent( TQDragLeaveEvent *e );
+ void contentsDropEvent( TQDropEvent *e );
+ void contentsMouseMoveEvent( TQMouseEvent *e );
+ void contentsMousePressEvent( TQMouseEvent *e );
+ void mouseReleaseEvent( TQMouseEvent *e );
+ void timerEvent( TQTimerEvent * );
+ void viewportPaintEvent( TQPaintEvent *e );
private:
- QListViewItem *oldCurrent;
- QListViewItem *dropItem;
-/* QTimer* autoopen_timer;*/
- QPoint presspos;
+ TQListViewItem *oldCurrent;
+ TQListViewItem *dropItem;
+/* TQTimer* autoopen_timer;*/
+ TQPoint presspos;
bool mousePressed;
int dropTimer;
bool m_recentDrop;
signals:
- void attach(const QString &, const QString &);
- void extendCircuit(const QString &, const QString &, bool);
- void createCircuit(const QString &, bool);
- void itemAdded(QListViewItem *);
+ void attach(const TQString &, const TQString &);
+ void extendCircuit(const TQString &, const TQString &, bool);
+ void createCircuit(const TQString &, bool);
+ void itemAdded(TQListViewItem *);
-/* void dragEnterEvent( QDragEnterEvent *evt );
- void dropEvent( QDropEvent *evt );
- void contentsMousePressEvent( QMouseEvent *evt );
- void contentsMouseMoveEvent( QMouseEvent * );*/
-// QDragObject *dragObject();
+/* void dragEnterEvent( TQDragEnterEvent *evt );
+ void dropEvent( TQDropEvent *evt );
+ void contentsMousePressEvent( TQMouseEvent *evt );
+ void contentsMouseMoveEvent( TQMouseEvent * );*/
+// TQDragObject *dragObject();
// private:
// bool dragging;