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
+5 -3
View File
@@ -1,5 +1,6 @@
#include "common/WindowDescriptors.hpp"
#include "common/QLogging.hpp"
#include "widgets/Window.hpp"
namespace chatterino {
@@ -126,7 +127,7 @@ WindowLayout WindowLayout::loadFromFile(const QString &path)
{
if (hasSetAMainWindow)
{
qDebug()
qCDebug(chatterinoCommon)
<< "Window Layout file contains more than one Main window "
"- demoting to Popup type";
type = WindowType::Popup;
@@ -180,8 +181,9 @@ WindowLayout WindowLayout::loadFromFile(const QString &path)
{
if (hasSetASelectedTab)
{
qDebug() << "Window contains more than one selected tab - "
"demoting to unselected";
qCDebug(chatterinoCommon)
<< "Window contains more than one selected tab - "
"demoting to unselected";
tab.selected_ = false;
}
hasSetASelectedTab = true;