Switch to QT Category logging (#2206)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Steve Wills
2020-11-21 10:20:10 -05:00
committed by GitHub
parent d206ed4bcc
commit df722a72c1
54 changed files with 655 additions and 239 deletions
+4 -2
View File
@@ -7,6 +7,7 @@
#include <QTimer>
#include <QVBoxLayout>
#include "common/QLogging.hpp"
#ifdef USEWINSDK
# include "util/WindowsHelper.hpp"
@@ -192,7 +193,8 @@ void AttachedWindow::attachToHwnd(void *_attachedPtr)
!qfilename.endsWith("brave.exe"))
{
qDebug() << "NM Illegal caller" << qfilename;
qCWarning(chatterinoWidget)
<< "NM Illegal caller" << qfilename;
this->timer_.stop();
this->deleteLater();
return;
@@ -241,7 +243,7 @@ void AttachedWindow::updateWindowRect(void *_attachedPtr)
if (::GetLastError() != 0)
{
qDebug() << "NM GetLastError()" << ::GetLastError();
qCWarning(chatterinoWidget) << "NM GetLastError()" << ::GetLastError();
this->timer_.stop();
this->deleteLater();