School Commit Init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#include <QtWidgets/QApplication>
|
||||
#include "PresenterView.h"
|
||||
#include "ParticipantView.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
QuestionRepo repo{"questions.txt"};
|
||||
ParticipantRepo prepo{"participants.txt"};
|
||||
ParticipantModel* pmodel = new ParticipantModel{ prepo, repo };
|
||||
ParticipantView* pview = new ParticipantView{ pmodel };
|
||||
PresenterModel* model = new PresenterModel{ repo };
|
||||
PresenterView* view = new PresenterView{ model};
|
||||
pview->show();
|
||||
|
||||
view->show();
|
||||
return a.exec();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user