refactor: DebugCount (#6753)

Reviewed-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
Reviewed-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
Mm2PL
2026-01-28 11:37:06 +01:00
committed by GitHub
parent b69ab9315f
commit 60ecf1a8d7
25 changed files with 198 additions and 129 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ AttachedWindow::AttachedWindow(void *_target)
split->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::MinimumExpanding);
layout->addWidget(split);
DebugCount::increase("attached window");
DebugCount::increase(DebugObject::AttachedWindow);
}
AttachedWindow::~AttachedWindow()
@@ -75,7 +75,7 @@ AttachedWindow::~AttachedWindow()
}
}
DebugCount::decrease("attached window");
DebugCount::decrease(DebugObject::AttachedWindow);
}
AttachedWindow *AttachedWindow::get(void *target, const GetArgs &args)
+2 -2
View File
@@ -272,12 +272,12 @@ BaseWindow::BaseWindow(FlagsEnum<Flags> _flags, QWidget *parent)
#endif
this->themeChangedEvent();
DebugCount::increase("BaseWindow");
DebugCount::increase(DebugObject::BaseWindow);
}
BaseWindow::~BaseWindow()
{
DebugCount::decrease("BaseWindow");
DebugCount::decrease(DebugObject::BaseWindow);
}
void BaseWindow::setInitialBounds(QRect bounds, widgets::BoundsChecking mode)
+1
View File
@@ -6,6 +6,7 @@
#include "Application.hpp"
#include "messages/layouts/MessageLayout.hpp"
#include "messages/layouts/MessageLayoutElement.hpp"
#include "messages/MessageElement.hpp"
#include "messages/Selection.hpp"
#include "providers/colors/ColorProvider.hpp"