aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/platform/qquickplatformmenubar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/platform/qquickplatformmenubar.cpp')
-rw-r--r--src/imports/platform/qquickplatformmenubar.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/imports/platform/qquickplatformmenubar.cpp b/src/imports/platform/qquickplatformmenubar.cpp
index 02acbb43..8c3624cb 100644
--- a/src/imports/platform/qquickplatformmenubar.cpp
+++ b/src/imports/platform/qquickplatformmenubar.cpp
@@ -37,6 +37,7 @@
#include "qquickplatformmenubar_p.h"
#include "qquickplatformmenu_p.h"
+#include <QtCore/qloggingcategory.h>
#include <QtGui/qpa/qplatformmenu.h>
#include <QtGui/qpa/qplatformtheme.h>
#include <QtGui/private/qguiapplication_p.h>
@@ -102,6 +103,8 @@ QT_BEGIN_NAMESPACE
\sa Menu
*/
+Q_DECLARE_LOGGING_CATEGORY(qtLabsPlatformMenus)
+
QQuickPlatformMenuBar::QQuickPlatformMenuBar(QObject *parent)
: QObject(parent),
m_complete(false),
@@ -109,6 +112,7 @@ QQuickPlatformMenuBar::QQuickPlatformMenuBar(QObject *parent)
m_handle(nullptr)
{
m_handle = QGuiApplicationPrivate::platformTheme()->createPlatformMenuBar();
+ qCDebug(qtLabsPlatformMenus) << "MenuBar:" << m_handle;
}
QQuickPlatformMenuBar::~QQuickPlatformMenuBar()