From f8542bd1332224fe30ad2aea1388647933838cab Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 15 Aug 2016 19:41:59 +0200 Subject: Platform: align logging output Change-Id: I3438e1da864f6d7c710e4770f12aa2596f091a9d Reviewed-by: J-P Nurmi --- src/imports/platform/qquickplatformdialog.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/imports/platform/qquickplatformdialog.cpp') diff --git a/src/imports/platform/qquickplatformdialog.cpp b/src/imports/platform/qquickplatformdialog.cpp index 13f40d1a..6a772940 100644 --- a/src/imports/platform/qquickplatformdialog.cpp +++ b/src/imports/platform/qquickplatformdialog.cpp @@ -371,6 +371,11 @@ static QPlatformDialogHelper *createWidgetDialog(QPlatformTheme::DialogType type return dialog; } +static const char *qmlTypeName(const QObject *object) +{ + return object->metaObject()->className() + qstrlen("QQuickPlatform"); +} + bool QQuickPlatformDialog::create() { if (!m_handle) { @@ -378,7 +383,7 @@ bool QQuickPlatformDialog::create() m_handle = QGuiApplicationPrivate::platformTheme()->createPlatformDialogHelper(m_type); if (!m_handle) m_handle = createWidgetDialog(m_type, this); - qCDebug(qtLabsPlatformDialogs) << this << "created" << m_handle; + qCDebug(qtLabsPlatformDialogs) << qmlTypeName(this) << "->" << m_handle; if (m_handle) { onCreate(m_handle); connect(m_handle, &QPlatformDialogHelper::accept, this, &QQuickPlatformDialog::accept); -- cgit v1.2.3