keep a pointer to the universe being viewed
This commit is contained in:
parent
13a775d0fd
commit
31f460913c
|
@ -13,6 +13,7 @@
|
|||
UniverseView::UniverseView(QWidget *parent, QSacnUniverse *universe)
|
||||
: QMainWindow(parent)
|
||||
, ui(new Ui::UniverseView())
|
||||
, mUniverse(universe)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue