wip remove epw now working, xekboxs still funky
This commit is contained in:
parent
a15037c5f2
commit
6744a64fce
3 changed files with 8 additions and 7 deletions
|
|
@ -182,7 +182,7 @@ EndpointWidget::EndpointWidget(uint64_t idx, EndpointHandler* eph, QWidget *pare
|
|||
}
|
||||
|
||||
void MainWindow::customEvent(QEvent* ev) {
|
||||
if (ev->type() == (QEvent::Type)CustomQEvent::EndpointWidgetObsolete) {
|
||||
if (ev->type() == CustomQEvent::EndpointWidgetObsolete) {
|
||||
this->removeEndpointWidget((EndpointWidgetEvent*)ev);
|
||||
return;
|
||||
}
|
||||
|
|
@ -347,9 +347,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
|
|||
});
|
||||
|
||||
osh->setRemoveEndpointWidgetFunction([this](uint64_t index) {
|
||||
EndpointWidgetEvent removeObsoleteEndpointWidget((QEvent::Type)CustomQEvent::EndpointWidgetObsolete, index);
|
||||
removeObsoleteEndpointWidget.setAccepted(true);
|
||||
QCoreApplication::instance()->postEvent(this, &removeObsoleteEndpointWidget);
|
||||
EndpointWidgetEvent* removeObsoleteEndpointWidget = new EndpointWidgetEvent((QEvent::Type)CustomQEvent::EndpointWidgetObsolete, index);
|
||||
removeObsoleteEndpointWidget->setAccepted(true);
|
||||
QCoreApplication::instance()->postEvent(this, removeObsoleteEndpointWidget);
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue