From d796c9dd933ab96ec83b9a634feedd5d32e1ba3f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 8 Nov 2011 12:31:36 -0600 Subject: Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731 --- examples/demo/dnd/iconview.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 examples/demo/dnd/iconview.h (limited to 'examples/demo/dnd/iconview.h') diff --git a/examples/demo/dnd/iconview.h b/examples/demo/dnd/iconview.h new file mode 100644 index 000000000..a0b4e3a95 --- /dev/null +++ b/examples/demo/dnd/iconview.h @@ -0,0 +1,31 @@ +#include +#include + +#include "dnd.h" + +class IconViewItem : public TQIconViewItem +{ +public: + IconViewItem( TQIconView * parent, const TQString & text, const TQPixmap & icon, const TQString& tag ) + : TQIconViewItem( parent, text, icon ), _tag( tag ) {} + virtual ~IconViewItem() {} + + TQString tag() { return _tag; } + +private: + TQString _tag; +}; + +class IconView : public TQIconView +{ + Q_OBJECT + +public: + IconView( TQWidget* parent = 0, const char* name = 0 ); + ~IconView(); + + TQDragObject *dragObject(); + +public slots: + void slotNewItem( TQDropEvent *t, const TQValueList& ); +}; -- cgit v1.2.1