One TODO added

This commit is contained in:
Bertrand Songis
2019-10-19 13:01:04 +02:00
parent 48de6ca188
commit d2eecac722
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class FormGroup: public FormField {
~FormGroup() override
{
deleteChildren();
deleteChildren(); // TODO move it to ~Window()
}
#if defined(DEBUG_WINDOWS)
+2
View File
@@ -45,6 +45,8 @@ Window::~Window()
if (focusWindow == this) {
focusWindow = nullptr;
}
// TODO deleteChildren(); (remove from FormGroup)
}
void Window::attach(Window * window)
+2 -2
View File
@@ -299,6 +299,8 @@ class Window {
virtual void checkEvents();
void detach();
protected:
Window * parent;
std::list<Window *> children;
@@ -318,8 +320,6 @@ class Window {
void attach(Window * window);
void detach();
void addChild(Window * window)
{
children.push_back(window);