refactor: DebugCount (#6753)
Reviewed-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com> Reviewed-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user