Kaydet (Commit) 4ad69820 authored tarafından Michael Weghorn's avatar Michael Weghorn

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: 's avatarMichael Weghorn <m.weghorn@posteo.de>
üst d9aaa26a
......@@ -11,9 +11,12 @@
#include <salmenu.hxx>
#include <QtCore/QObject>
#include <memory>
class MenuItemList;
class QAction;
class QActionGroup;
class QMenu;
class QMenuBar;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment