diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2018-12-13 22:30:04 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2018-12-14 00:42:43 +0100 |
commit | 4ad69820b0614801ce0b43fd0adb53131d12a7b6 (patch) | |
tree | b24f3d955f0071fbad8b8c61e8e6e4771390cc3a | |
parent | d9aaa26a4efbe7c69254ecc5f00b997f237686e9 (diff) |
Qt5Menu.hxx: Add missing include/forward-declaration
Since 'QObject' and the 'Q_OBJECT' macro are used,
the corresponding header needs to be included.
Without the include and forward-declaration given here,
the compiler doesn't know about 'QObject' and 'QAction'
which are used further below, unless another header that
takes care of this is included before 'QtMenu.hxx'.
The error could be provoked e.g. by moving the
'#include <Qt5Menu.hxx>' in front of all other includes
in 'vcl/qt5/Qt5Frame.cxx'.
Change-Id: I76c15eb445cbe26774d6e4177e12c93658daf0ad
Reviewed-on: https://gerrit.libreoffice.org/65130
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r-- | vcl/inc/qt5/Qt5Menu.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/qt5/Qt5Menu.hxx b/vcl/inc/qt5/Qt5Menu.hxx index 9f7469fa3f78..6d2d4b786497 100644 --- a/vcl/inc/qt5/Qt5Menu.hxx +++ b/vcl/inc/qt5/Qt5Menu.hxx @@ -11,9 +11,12 @@ #include <salmenu.hxx> +#include <QtCore/QObject> + #include <memory> class MenuItemList; +class QAction; class QActionGroup; class QMenu; class QMenuBar; |