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 ~FormGroup() override
{ {
deleteChildren(); deleteChildren(); // TODO move it to ~Window()
} }
#if defined(DEBUG_WINDOWS) #if defined(DEBUG_WINDOWS)
+2
View File
@@ -45,6 +45,8 @@ Window::~Window()
if (focusWindow == this) { if (focusWindow == this) {
focusWindow = nullptr; focusWindow = nullptr;
} }
// TODO deleteChildren(); (remove from FormGroup)
} }
void Window::attach(Window * window) void Window::attach(Window * window)
+2 -2
View File
@@ -299,6 +299,8 @@ class Window {
virtual void checkEvents(); virtual void checkEvents();
void detach();
protected: protected:
Window * parent; Window * parent;
std::list<Window *> children; std::list<Window *> children;
@@ -318,8 +320,6 @@ class Window {
void attach(Window * window); void attach(Window * window);
void detach();
void addChild(Window * window) void addChild(Window * window)
{ {
children.push_back(window); children.push_back(window);