|
Last change
on this file since 176 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:
1.3 KB
|
| Line | |
|---|
| 1 | /****************************************************************************
|
|---|
| 2 | ** $Id: dropsite.h 160 2006-12-11 20:15:57Z dmik $
|
|---|
| 3 | **
|
|---|
| 4 | ** Drop site example implementation
|
|---|
| 5 | **
|
|---|
| 6 | ** Created : 979899
|
|---|
| 7 | **
|
|---|
| 8 | ** Copyright (C) 1997 by Trolltech AS. All rights reserved.
|
|---|
| 9 | **
|
|---|
| 10 | ** This file is part of an example program for Qt. This example
|
|---|
| 11 | ** program may be used, distributed and modified without limitation.
|
|---|
| 12 | **
|
|---|
| 13 | *****************************************************************************/
|
|---|
| 14 |
|
|---|
| 15 | #ifndef DROPSITE_H
|
|---|
| 16 | #define DROPSITE_H
|
|---|
| 17 |
|
|---|
| 18 | #include <qlabel.h>
|
|---|
| 19 | #include <qmovie.h>
|
|---|
| 20 | #include "qdropsite.h"
|
|---|
| 21 |
|
|---|
| 22 | class QDragObject;
|
|---|
| 23 |
|
|---|
| 24 | class DropSite: public QLabel
|
|---|
| 25 | {
|
|---|
| 26 | Q_OBJECT
|
|---|
| 27 | public:
|
|---|
| 28 | DropSite( QWidget * parent = 0, const char * name = 0 );
|
|---|
| 29 | ~DropSite();
|
|---|
| 30 |
|
|---|
| 31 | signals:
|
|---|
| 32 | void message( const QString& );
|
|---|
| 33 |
|
|---|
| 34 | protected:
|
|---|
| 35 | void dragEnterEvent( QDragEnterEvent * );
|
|---|
| 36 | void dragMoveEvent( QDragMoveEvent * );
|
|---|
| 37 | void dragLeaveEvent( QDragLeaveEvent * );
|
|---|
| 38 | void dropEvent( QDropEvent * );
|
|---|
| 39 | void backgroundColorChange( const QColor& );
|
|---|
| 40 |
|
|---|
| 41 | // this is a normal even
|
|---|
| 42 | void mousePressEvent( QMouseEvent * );
|
|---|
| 43 | };
|
|---|
| 44 |
|
|---|
| 45 | class DragMoviePlayer : public QObject {
|
|---|
| 46 | Q_OBJECT
|
|---|
| 47 | QDragObject* dobj;
|
|---|
| 48 | QMovie movie;
|
|---|
| 49 | public:
|
|---|
| 50 | DragMoviePlayer(QDragObject*);
|
|---|
| 51 | private slots:
|
|---|
| 52 | void updatePixmap( const QRect& );
|
|---|
| 53 | };
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.