#include "planemanager.h" #include #include "widgets/plane.h" PlaneManager::PlaneManager() { ui.setupUi(this); this->setup_ui(); this->setup_signals(); } PlaneManager::~PlaneManager() { } void PlaneManager::setup_ui() { scroll_vbox = new QVBoxLayout(); ui.scroll_area_widget->setLayout(scroll_vbox); } void PlaneManager::setup_signals() { this->connect(ui.add_button, SIGNAL(clicked()), this, SLOT(add_plane())); } void PlaneManager::add_plane() { Plane *plane = new Plane(); this->scroll_vbox->addWidget(plane); }