Clean project structure.
This commit is contained in:
parent
78a4fa99ff
commit
947bf937fd
496 changed files with 206 additions and 137 deletions
28
src/ui/ui_controls/StackWidget.cpp
Normal file
28
src/ui/ui_controls/StackWidget.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "StackWidget.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
StackWidget::StackWidget()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
std::unique_ptr<StackWidget> StackWidget::Create()
|
||||
{
|
||||
return std::make_unique<StackWidget>();
|
||||
}
|
||||
|
||||
void StackWidget::showChild(Widget* target)
|
||||
{
|
||||
for(auto& child : mChildren)
|
||||
{
|
||||
if(child.get() == target)
|
||||
{
|
||||
child->setVisible(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
child->setVisible(false);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue