CatalogueExplorer.cpp
22 lines
| 700 B
| text/x-c
|
CppLexer
r1093 | #include "Catalogue/CatalogueExplorer.h" | |||
#include "ui_CatalogueExplorer.h" | ||||
CatalogueExplorer::CatalogueExplorer(QWidget *parent) | ||||
r1100 | : QDialog(parent, Qt::Dialog | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint), | |||
ui(new Ui::CatalogueExplorer) | ||||
r1093 | { | |||
ui->setupUi(this); | ||||
r1103 | ||||
connect(ui->catalogues, &CatalogueSideBarWidget::catalogueSelected, [this](auto name) { | ||||
r1105 | ui->inspector->setEvent(name); | |||
r1103 | ui->events->populateWithCatalogue(name); | |||
}); | ||||
connect(ui->events, &CatalogueEventsWidget::eventSelected, | ||||
r1105 | [this](auto name) { ui->inspector->setCatalogue(name); }); | |||
r1093 | } | |||
CatalogueExplorer::~CatalogueExplorer() | ||||
{ | ||||
delete ui; | ||||
} | ||||