added DebugCount for BaseWindow

This commit is contained in:
fourtf 2020-08-22 22:53:31 +02:00
parent ebb4ffe36d
commit 6e6413da02
2 changed files with 8 additions and 0 deletions

View file

@ -3,6 +3,7 @@
#include "BaseSettings.hpp"
#include "BaseTheme.hpp"
#include "boost/algorithm/algorithm.hpp"
#include "util/DebugCount.hpp"
#include "util/PostToThread.hpp"
#include "util/Shortcut.hpp"
#include "util/WindowsHelper.hpp"
@ -94,6 +95,12 @@ BaseWindow::BaseWindow(FlagsEnum<Flags> _flags, QWidget *parent)
#endif
this->themeChangedEvent();
DebugCount::increase("BaseWindow");
}
BaseWindow::~BaseWindow()
{
DebugCount::decrease("BaseWindow");
}
void BaseWindow::setInitialBounds(const QRect &bounds)

View file

@ -36,6 +36,7 @@ public:
explicit BaseWindow(FlagsEnum<Flags> flags_ = None,
QWidget *parent = nullptr);
~BaseWindow() override;
void setInitialBounds(const QRect &bounds);
QRect getBounds();