summaryrefslogtreecommitdiffstats
path: root/ui/qt/widgets/drag_label.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/widgets/drag_label.h')
-rw-r--r--ui/qt/widgets/drag_label.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/ui/qt/widgets/drag_label.h b/ui/qt/widgets/drag_label.h
new file mode 100644
index 00000000..ef40d3dd
--- /dev/null
+++ b/ui/qt/widgets/drag_label.h
@@ -0,0 +1,27 @@
+/** @file
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef UI_QT_WIDGETS_DRAG_LABEL_H_
+#define UI_QT_WIDGETS_DRAG_LABEL_H_
+
+#include <QLabel>
+#include <QDrag>
+#include <QMimeData>
+#include <QMouseEvent>
+
+class DragLabel: public QLabel
+{
+ Q_OBJECT
+
+public:
+ explicit DragLabel(QString text, QWidget * parent = 0);
+ virtual ~DragLabel();
+};
+
+#endif /* UI_QT_WIDGETS_DRAG_LABEL_H_ */