1
0
Fork 0

keep a pointer to the universe being viewed

This commit is contained in:
Kevin Matz 2022-12-03 11:00:48 -05:00
parent 13a775d0fd
commit 31f460913c
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,7 @@
UniverseView::UniverseView(QWidget *parent, QSacnUniverse *universe)
: QMainWindow(parent)
, ui(new Ui::UniverseView())
, mUniverse(universe)
{
ui->setupUi(this);

View File

@ -21,10 +21,17 @@ public:
QSacnUniverse* universe = nullptr);
virtual ~UniverseView();
/**
* @brief universe
* @return
*/
QSacnUniverse * universe() { return mUniverse; }
public slots:
void updateStatus(QSacnUniverse *);
private:
Ui::UniverseView *ui;
QSpinBox *prioritySpinBox;
QSacnUniverse *mUniverse;
};