wip partial refactor
This commit is contained in:
parent
ad34a38f38
commit
bc82ec72ed
7 changed files with 114 additions and 53 deletions
|
|
@ -22,17 +22,11 @@ QApplication* createApplication(int &argc, char *argv[])
|
|||
int main (int argc, char* argv[]) {
|
||||
//QApplication::setStyle("windowsvista");
|
||||
//INIT CONT
|
||||
std::vector<Endpoint*> eps = OverseerHandler::getOverseer()->getPlaybackEndpoints();
|
||||
std::vector<EndpointHandler*>* ephs = new std::vector<EndpointHandler*>;
|
||||
for(unsigned int i = 0; i < eps.size(); i++){
|
||||
EndpointCallback* epc = new EndpointCallback();
|
||||
EndpointHandler* eph = new EndpointHandler(eps.at(i), epc);
|
||||
ephs->push_back(eph);
|
||||
}
|
||||
osh->reloadEndpointHandlers();
|
||||
|
||||
//INIT FRONT
|
||||
QScopedPointer<QApplication> app(createApplication(argc, argv));
|
||||
MainWindow window = MainWindow(ephs);
|
||||
MainWindow window = MainWindow();
|
||||
//window.setEndpointHandlers(ephs);
|
||||
app->setStyle("windowsvista");
|
||||
window.show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue