Last change
on this file since 168 was 160, checked in by dmik, 19 years ago |
Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.
|
-
Property svn:keywords
set to
Id
|
File size:
667 bytes
|
Line | |
---|
1 | #include <qiconview.h>
|
---|
2 | #include <qstring.h>
|
---|
3 |
|
---|
4 | #include "dnd.h"
|
---|
5 |
|
---|
6 | class IconViewItem : public QIconViewItem
|
---|
7 | {
|
---|
8 | public:
|
---|
9 | IconViewItem( QIconView * parent, const QString & text, const QPixmap & icon, const QString& tag )
|
---|
10 | : QIconViewItem( parent, text, icon ), _tag( tag ) {}
|
---|
11 | virtual ~IconViewItem() {}
|
---|
12 |
|
---|
13 | QString tag() { return _tag; }
|
---|
14 |
|
---|
15 | private:
|
---|
16 | QString _tag;
|
---|
17 | };
|
---|
18 |
|
---|
19 | class IconView : public QIconView
|
---|
20 | {
|
---|
21 | Q_OBJECT
|
---|
22 |
|
---|
23 | public:
|
---|
24 | IconView( QWidget* parent = 0, const char* name = 0 );
|
---|
25 | ~IconView();
|
---|
26 |
|
---|
27 | QDragObject *dragObject();
|
---|
28 |
|
---|
29 | public slots:
|
---|
30 | void slotNewItem( QDropEvent *t, const QValueList<QIconDragItem>& );
|
---|
31 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.