source: trunk/examples/dragdrop/secret.h@ 203

Last change on this file since 203 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.0 KB
Line 
1/****************************************************************************
2** $Id: secret.h 160 2006-12-11 20:15:57Z dmik $
3**
4** Custom MIME type implementation example
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 SECRETDRAG_H
16#define SECRETDRAG_H
17
18#include <qdragobject.h>
19#include <qlabel.h>
20
21class SecretDrag: public QStoredDrag {
22public:
23 SecretDrag( uchar, QWidget * parent = 0, const char * name = 0 );
24 ~SecretDrag() {};
25
26 static bool canDecode( QDragMoveEvent* e );
27 static bool decode( QDropEvent* e, QString& s );
28};
29
30
31class SecretSource: public QLabel
32{
33public:
34 SecretSource( int secret, QWidget *parent = 0, const char * name = 0 );
35 ~SecretSource();
36
37protected:
38 void mousePressEvent( QMouseEvent * );
39private:
40 int mySecret;
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.