summaryrefslogtreecommitdiffstats
path: root/examples/widgets/draganddrop/dropsite
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/draganddrop/dropsite')
-rw-r--r--examples/widgets/draganddrop/dropsite/droparea.cpp5
-rw-r--r--examples/widgets/draganddrop/dropsite/droparea.h2
-rw-r--r--examples/widgets/draganddrop/dropsite/dropsitewindow.h2
3 files changed, 5 insertions, 4 deletions
diff --git a/examples/widgets/draganddrop/dropsite/droparea.cpp b/examples/widgets/draganddrop/dropsite/droparea.cpp
index e4c087852a..9982529d98 100644
--- a/examples/widgets/draganddrop/dropsite/droparea.cpp
+++ b/examples/widgets/draganddrop/dropsite/droparea.cpp
@@ -38,10 +38,11 @@
**
****************************************************************************/
-#include <QtWidgets>
-
#include "droparea.h"
+#include <QDragEnterEvent>
+#include <QMimeData>
+
//! [DropArea constructor]
DropArea::DropArea(QWidget *parent)
: QLabel(parent)
diff --git a/examples/widgets/draganddrop/dropsite/droparea.h b/examples/widgets/draganddrop/dropsite/droparea.h
index ac66182a70..8784090325 100644
--- a/examples/widgets/draganddrop/dropsite/droparea.h
+++ b/examples/widgets/draganddrop/dropsite/droparea.h
@@ -74,4 +74,4 @@ private:
};
//! [DropArea header part2]
-#endif
+#endif // DROPAREA_H
diff --git a/examples/widgets/draganddrop/dropsite/dropsitewindow.h b/examples/widgets/draganddrop/dropsite/dropsitewindow.h
index a4aeaf4fc5..45fdd36d3f 100644
--- a/examples/widgets/draganddrop/dropsite/dropsitewindow.h
+++ b/examples/widgets/draganddrop/dropsite/dropsitewindow.h
@@ -74,4 +74,4 @@ private:
};
//! [DropSiteWindow header]
-#endif
+#endif // DROPSITEWINDOW_H