Fix graphics/Drawfile ahead of CMake 3.11.

The order in which files are placed in mocs_compilation.cpp has changed
in CMake 3.11 compared to CMake 3.10. This shows up places where not all
of the includes needed for a bit of code, are included -- because by chance,
everywhere else they are already included by the time the compiler gets to
the offending header. In switching the order around, compiles fail.

The error message is in the patch -- just a missing type declaration.

Approved by:	tcberner (mentor, implicit)
Differential Revision:	https://reviews.freebsd.org/D14770
This commit is contained in:
Adriaan de Groot 2018-04-02 20:12:15 +00:00
parent f8906302f6
commit cf7175bd8a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466260
2 changed files with 14 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= Drawpile
DISTVERSION= 2.0.10
PORTREVISION= 1
CATEGORIES= graphics python
MAINTAINER= yuri@FreeBSD.org

View File

@ -0,0 +1,13 @@
Missing include:
userlistwidget.h:64:30: error: unknown type name 'QItemSelection'
--- src/desktop/widgets/userlistwidget.h.orig 2018-03-17 15:25:30 UTC
+++ src/desktop/widgets/userlistwidget.h
@@ -23,6 +23,7 @@
#include <QWidget>
#include <QItemDelegate>
+#include <QItemSelection>
class Ui_UserBox;