phantom header and default role recollection
This commit is contained in:
parent
5c8c1509c8
commit
e278280c4b
10 changed files with 354 additions and 46 deletions
|
|
@ -8,6 +8,14 @@ EndpointWidget::EndpointWidget(uint64_t idx, EndpointHandler* eph, QWidget *pare
|
|||
log_debugcpp("olaW");
|
||||
if (parent == nullptr) { log_debugcpp("owo?"); }
|
||||
|
||||
|
||||
defaultRolesCheckBoxes = {
|
||||
{Roles::ROLE_ALL, new QCheckBox()},
|
||||
{Roles::ROLE_CONSOLE, new QCheckBox()},
|
||||
{Roles::ROLE_MULTIMEDIA, new QCheckBox()},
|
||||
{Roles::ROLE_COMMUNICATIONS, new QCheckBox()}
|
||||
};
|
||||
|
||||
muteButton = new QCheckBox();
|
||||
mainLabel = new QLabel(QString::fromStdWString(eph->getName()));
|
||||
mainSlider = new QSlider(Qt::Horizontal);
|
||||
|
|
@ -58,6 +66,18 @@ EndpointWidget::EndpointWidget(uint64_t idx, EndpointHandler* eph, QWidget *pare
|
|||
});
|
||||
}
|
||||
|
||||
uint8_t assignedRoles = eph->getRoles();
|
||||
defaultRolesCheckBoxes.at(Roles::ROLE_ALL)->setCheckState(assignedRoles == Roles::ROLE_ALL ? Qt::Checked : Qt::Unchecked);
|
||||
/*
|
||||
* {ROLE_ALL, new QCheckBox(this)},
|
||||
* {ROLE_CONSOLE, new QCheckBox(this)},
|
||||
* {ROLE_MULTIMEDIA, new QCheckBox(this)},
|
||||
* {ROLE_COMMUNICATIONS, new QCheckBox(this)}
|
||||
* };
|
||||
*/
|
||||
layout->addWidget(defaultRolesCheckBoxes.at(Roles::ROLE_ALL), 3, 0);
|
||||
|
||||
|
||||
//Polling time
|
||||
timer = new QTimer(this);
|
||||
connect(timer, &QTimer::timeout, [this, eph](){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue