mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
added DebugCount for BaseWindow
This commit is contained in:
parent
ebb4ffe36d
commit
6e6413da02
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -36,6 +36,7 @@ public:
|
|||
|
||||
explicit BaseWindow(FlagsEnum<Flags> flags_ = None,
|
||||
QWidget *parent = nullptr);
|
||||
~BaseWindow() override;
|
||||
|
||||
void setInitialBounds(const QRect &bounds);
|
||||
QRect getBounds();
|
||||
|
|
Loading…
Reference in a new issue