diff options
author | David Schulz <david.schulz@qt.io> | 2019-12-18 07:40:05 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2019-12-18 07:11:53 +0000 |
commit | 546d4a3b1a7c0996fa9d730c9b0ccf59bea9d1cb (patch) | |
tree | 972d57eb6970c87e975015d77cf6758f97a90aee | |
parent | 6d4223c5d61fd42144cd1361e76c874c6384049b (diff) | |
download | qt-creator-546d4a3b1a7c0996fa9d730c9b0ccf59bea9d1cb.tar.gz |
WinRT: Move some device detection output into a logging category
This hides the detection failing in the case when no winrtrunner.exe can
be found, which is given as soon as you do not have a UWP Qt installed.
So moving this output to logging category makes it still accessible, but
it doesn't confuse non UWP developer.
Change-Id: Ie1434f75086d435f8f033b58c010e35fe64658b0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | src/plugins/winrt/winrtdevice.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/winrt/winrtdevice.cpp b/src/plugins/winrt/winrtdevice.cpp index cf99e212b0..a8458ace90 100644 --- a/src/plugins/winrt/winrtdevice.cpp +++ b/src/plugins/winrt/winrtdevice.cpp @@ -137,10 +137,9 @@ WinRtDeviceFactory::WinRtDeviceFactory(Core::Id deviceType) void WinRtDeviceFactory::autoDetect() { qCDebug(winrtDeviceLog) << __FUNCTION__; - MessageManager::write(tr("Running Windows Runtime device detection.")); const QString runnerFilePath = findRunnerFilePath(); if (runnerFilePath.isEmpty()) { - MessageManager::write(tr("No winrtrunner.exe found.")); + qCDebug(winrtDeviceLog) << "No winrtrunner.exe found."; return; } @@ -155,7 +154,6 @@ void WinRtDeviceFactory::autoDetect() const CommandLine cmd{runnerFilePath, {"--list-devices"}}; m_process->setCommand(cmd); qCDebug(winrtDeviceLog) << __FUNCTION__ << "Starting process" << cmd.toUserOutput(); - MessageManager::write(cmd.toUserOutput()); m_process->start(); qCDebug(winrtDeviceLog) << __FUNCTION__ << "Process started"; } @@ -361,7 +359,7 @@ void WinRtDeviceFactory::parseRunnerOutput(const QByteArray &output) const message += QLatin1Char(' '); message += tr("%n of them are new.", nullptr, numNew); } - MessageManager::write(message); + qCDebug(winrtDeviceLog) << message; } } // Internal |