kwinglplatform: Use qInfo instead of writing to stdout directly

Ensures the output passes through Qt's message handler infrastructure.

Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
This commit is contained in:
Kai Uwe Broulik 2022-08-18 13:00:27 +02:00 committed by Kai Uwe Broulik
parent 26752058d6
commit 3ca49ee64e

View file

@ -1136,8 +1136,7 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface)
static void print(const QByteArray &label, const QByteArray &setting)
{
std::cout << std::setw(40) << std::left
<< label.data() << setting.data() << std::endl;
qInfo("%-40s%s", label.data(), setting.data());
}
void GLPlatform::printResults() const