CatalogueInspectorWidget.cpp
24 lines
| 667 B
| text/x-c
|
CppLexer
r1095 | #include "Catalogue/CatalogueInspectorWidget.h" | |||
#include "ui_CatalogueInspectorWidget.h" | ||||
CatalogueInspectorWidget::CatalogueInspectorWidget(QWidget *parent) | ||||
: QWidget(parent), ui(new Ui::CatalogueInspectorWidget) | ||||
{ | ||||
ui->setupUi(this); | ||||
r1099 | showPage(Page::Empty); | |||
r1095 | } | |||
CatalogueInspectorWidget::~CatalogueInspectorWidget() | ||||
{ | ||||
delete ui; | ||||
} | ||||
r1099 | ||||
void CatalogueInspectorWidget::showPage(CatalogueInspectorWidget::Page page) | ||||
{ | ||||
ui->stackedWidget->setCurrentIndex(static_cast<int>(page)); | ||||
} | ||||
CatalogueInspectorWidget::Page CatalogueInspectorWidget::currentPage() const | ||||
{ | ||||
return static_cast<Page>(ui->stackedWidget->currentIndex()); | ||||
} | ||||