Debian Codegraph @

tests/manual/examples/widgets/draganddrop/fridgemagnets/draglabel.h

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4 #ifndef DRAGLABEL_H
5 #define DRAGLABEL_H
6
7 #include <QLabel>
8
9 QT_BEGIN_NAMESPACE
10 class QDragEnterEvent;
11 class QDragMoveEvent;
12 class QFrame;
13 QT_END_NAMESPACE
14
15 //! [0]
16 class DragLabel : public QLabel
17 {
18 public:
19 DragLabel(const QString &text, QWidget *parent);
20 QString labelText() const;
21
22 private:
23 QString m_labelText;
24 };
25 //! [0]
26
27 #endif // DRAGLABEL_H