reverted failed attempt, fixed callback release
This commit is contained in:
parent
c8d64481e8
commit
a565190e6f
7 changed files with 51 additions and 30 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#include "qtclasses.h"
|
||||
|
||||
|
||||
EndpointWidget::EndpointWidget(EndpointHandler* eph, QWidget *parent) : QWidget(parent){
|
||||
this->eph = eph;
|
||||
layout = new QGridLayout();
|
||||
|
|
@ -71,8 +70,6 @@ uint64_t EndpointWidget::getIndex(){
|
|||
return idx;
|
||||
}
|
||||
|
||||
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
|
||||
// setWindowState(Qt::WindowFullScreen);
|
||||
// setCentralWidget(centralWidget);
|
||||
|
|
@ -84,10 +81,11 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
|
|||
//layout->addWidget(pintas, 0, 0);
|
||||
|
||||
setWindowTitle("slidea resbala nu c");
|
||||
|
||||
reloadEndpointWidgets();
|
||||
}
|
||||
|
||||
/*s
|
||||
* setEndpointHandlers(ephs);
|
||||
*/
|
||||
void MainWindow::reloadEndpointWidgets() {
|
||||
unsigned int i = 0;
|
||||
for (; i < (osh->getEndpointHandlers().size()); i++) {
|
||||
log_debugcpp("EPWidget creation");
|
||||
|
|
@ -95,15 +93,11 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
|
|||
ews.push_back(epw);
|
||||
layout->addWidget(epw, i, 0);
|
||||
}
|
||||
//osh->setEndpointWidgets(ews);
|
||||
layout->addItem(new QSpacerItem(1, 1, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding), i, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* void MainWindow::setEndpointHandlers(std::vector<EndpointHandler*> *ephs){
|
||||
* this->ephs = ephs;
|
||||
*/
|
||||
|
||||
|
||||
//#include "qtclosemwh.h"
|
||||
|
||||
/*
|
||||
* void MainWindow::setPlotButton() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue