You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qt3/examples/demo/dnd/iconview.h

32 lines
636 B

#include <qiconview.h>
#include <qstring.h>
#include "dnd.h"
class IconViewItem : public QIconViewItem
{
public:
IconViewItem( QIconView * parent, const QString & text, const QPixmap & icon, const QString& tag )
: QIconViewItem( parent, text, icon ), _tag( tag ) {}
virtual ~IconViewItem() {}
QString tag() { return _tag; }
private:
QString _tag;
};
class IconView : public QIconView
{
Q_OBJECT
public:
IconView( QWidget* parent = 0, const char* name = 0 );
~IconView();
QDragObject *dragObject();
public slots:
void slotNewItem( QDropEvent *t, const QValueList<QIconDragItem>& );
};