ab3869312dfb1eab7867399c8f9b96f700ca87c2
[ptas] / zouba / qt / main.cpp
1 #include "route.h"
2 #include "ui_zouba.h"
3
4 #include "location.h"
5
6 #include <QDebug>
7
8 namespace {
9   Location home( "2549183", "6672570" );
10   Location work( "2551042", "6672829" );
11 }
12
13 int main(int argc, char *argv[] )
14 {
15   QApplication app(argc, argv);
16   QMainWindow *widget = new QMainWindow;
17   Ui::MainWindow ui;
18   ui.setupUi(widget);
19
20   Route route( &ui );
21
22   route.setFromLocation( work );
23   route.setToLocation( home );
24
25   route.get();
26
27   ui.TimeDisplay->setText( "HELLO" );
28
29   widget->show();
30   return app.exec();
31 }