One TODO added
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ class FormGroup: public FormField {
|
||||
|
||||
~FormGroup() override
|
||||
{
|
||||
deleteChildren();
|
||||
deleteChildren(); // TODO move it to ~Window()
|
||||
}
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
|
||||
@@ -45,6 +45,8 @@ Window::~Window()
|
||||
if (focusWindow == this) {
|
||||
focusWindow = nullptr;
|
||||
}
|
||||
|
||||
// TODO deleteChildren(); (remove from FormGroup)
|
||||
}
|
||||
|
||||
void Window::attach(Window * window)
|
||||
|
||||
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user