aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/platform/qquickplatformdialog.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-08-15 19:41:59 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-08-15 19:10:21 +0000
commitf8542bd1332224fe30ad2aea1388647933838cab (patch)
treee70cb05dfbe5709c738a96a2561c6c14c3353cc4 /src/imports/platform/qquickplatformdialog.cpp
parenta901a48e948c2f5441095f3a3cec81760853907d (diff)
Platform: align logging output
Change-Id: I3438e1da864f6d7c710e4770f12aa2596f091a9d Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/platform/qquickplatformdialog.cpp')
-rw-r--r--src/imports/platform/qquickplatformdialog.cpp7
1 files changed, 6 insertions, 1 deletions
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);