One TODO added
This commit is contained in:
+1
-1
@@ -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)
|
||||||
|
|||||||
@@ -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
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user