1 | /****************************************************************************
|
---|
2 | ** $Id: qdropsite.cpp 2 2005-11-16 15:49:26Z dmik $
|
---|
3 | **
|
---|
4 | ** Implementation of Drag and Drop support
|
---|
5 | **
|
---|
6 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
---|
7 | **
|
---|
8 | ** This file is part of the kernel module of the Qt GUI Toolkit.
|
---|
9 | **
|
---|
10 | ** This file may be distributed under the terms of the Q Public License
|
---|
11 | ** as defined by Trolltech AS of Norway and appearing in the file
|
---|
12 | ** LICENSE.QPL included in the packaging of this file.
|
---|
13 | **
|
---|
14 | ** This file may be distributed and/or modified under the terms of the
|
---|
15 | ** GNU General Public License version 2 as published by the Free Software
|
---|
16 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
17 | ** packaging of this file.
|
---|
18 | **
|
---|
19 | ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
|
---|
20 | ** licenses may use this file in accordance with the Qt Commercial License
|
---|
21 | ** Agreement provided with the Software.
|
---|
22 | **
|
---|
23 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
---|
24 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
25 | **
|
---|
26 | ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
---|
27 | ** information about Qt Commercial License Agreements.
|
---|
28 | ** See http://www.trolltech.com/qpl/ for QPL licensing information.
|
---|
29 | ** See http://www.trolltech.com/gpl/ for GPL licensing information.
|
---|
30 | **
|
---|
31 | ** Contact info@trolltech.com if any conditions of this licensing are
|
---|
32 | ** not clear to you.
|
---|
33 | **
|
---|
34 | **********************************************************************/
|
---|
35 |
|
---|
36 | #include "qdropsite.h"
|
---|
37 |
|
---|
38 | #ifndef QT_NO_DRAGANDDROP
|
---|
39 |
|
---|
40 | #include "qwidget.h"
|
---|
41 |
|
---|
42 |
|
---|
43 | // NOT REVISED
|
---|
44 | /*!
|
---|
45 | \class QDropSite qdropsite.h
|
---|
46 | \brief The QDropSite class provides nothing and does nothing.
|
---|
47 |
|
---|
48 | \obsolete
|
---|
49 |
|
---|
50 | If your code uses it, you can safely delete it.
|
---|
51 |
|
---|
52 | It was used in Qt 1.x to do some drag and drop; that has since been
|
---|
53 | folded into QWidget.
|
---|
54 |
|
---|
55 | For detailed information about drag-and-drop, see the QDragObject class.
|
---|
56 |
|
---|
57 | \sa QDragObject, QTextDrag, QImageDrag
|
---|
58 | */
|
---|
59 |
|
---|
60 | /*!
|
---|
61 | Constructs a QDropSite to handle events for the widget \a self.
|
---|
62 |
|
---|
63 | Pass \c this as the \a self parameter.
|
---|
64 | This enables dropping by calling QWidget::setAcceptDrops(TRUE).
|
---|
65 | */
|
---|
66 | QDropSite::QDropSite( QWidget* self )
|
---|
67 | {
|
---|
68 | self->setAcceptDrops( TRUE );
|
---|
69 | }
|
---|
70 |
|
---|
71 | /*!
|
---|
72 | Destroys the drop site.
|
---|
73 | */
|
---|
74 | QDropSite::~QDropSite()
|
---|
75 | {
|
---|
76 | }
|
---|
77 |
|
---|
78 | #endif // QT_NO_DRAGANDDROP
|
---|