Terminal: Fix build with QTC_STATIC_BUILD

The `log` Q_LOGGING_CATEGORY was used in a different place, and would
conflict in a static build.

Change-Id: Id23722a2aca3ea9afb846d8dd75aed9972c7b16f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Cristian Adam
2023-05-25 17:32:29 +02:00
committed by hjk
parent d64954b029
commit 12456ce688

View File

@@ -12,10 +12,10 @@
#include <QLoggingCategory> #include <QLoggingCategory>
Q_LOGGING_CATEGORY(log, "qtc.terminal.surface", QtWarningMsg);
namespace Terminal::Internal { namespace Terminal::Internal {
Q_LOGGING_CATEGORY(log, "qtc.terminal.surface", QtWarningMsg);
QColor toQColor(const VTermColor &c) QColor toQColor(const VTermColor &c)
{ {
return QColor(qRgb(c.rgb.red, c.rgb.green, c.rgb.blue)); return QColor(qRgb(c.rgb.red, c.rgb.green, c.rgb.blue));