summaryrefslogtreecommitdiffstats
path: root/tests/manual/examples/widgets/draganddrop/fridgemagnets/draglabel.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/examples/widgets/draganddrop/fridgemagnets/draglabel.h')
-rw-r--r--tests/manual/examples/widgets/draganddrop/fridgemagnets/draglabel.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/manual/examples/widgets/draganddrop/fridgemagnets/draglabel.h b/tests/manual/examples/widgets/draganddrop/fridgemagnets/draglabel.h
new file mode 100644
index 0000000000..e734a9ff78
--- /dev/null
+++ b/tests/manual/examples/widgets/draganddrop/fridgemagnets/draglabel.h
@@ -0,0 +1,27 @@
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+#ifndef DRAGLABEL_H
+#define DRAGLABEL_H
+
+#include <QLabel>
+
+QT_BEGIN_NAMESPACE
+class QDragEnterEvent;
+class QDragMoveEvent;
+class QFrame;
+QT_END_NAMESPACE
+
+//! [0]
+class DragLabel : public QLabel
+{
+public:
+ DragLabel(const QString &text, QWidget *parent);
+ QString labelText() const;
+
+private:
+ QString m_labelText;
+};
+//! [0]
+
+#endif // DRAGLABEL_H