int main(int argc, char *argv[] )
{
- qInstallMsgHandler( messageHandler );
+ //qInstallMsgHandler( messageHandler );
QApplication app(argc, argv);
+
QMainWindow *mainWindow = new QMainWindow;
Ui ui;
ui.setupUi(mainWindow);
- qDebug() << "1";
- qDebug() << "2";
- qDebug() << "3";
-
UiController *uiController = new UiController( &ui );
Route *route = new Route();
GpsController *gpsController = new GpsController();
);
QObject::connect(
- gpsController, SIGNAL( locationChanged( Location ) ),
- route, SLOT( setFromLocation( Location ) )
+ gpsController, SIGNAL( locationChanged( Location* ) ),
+ route, SLOT( setFromLocation( Location* ) )
);
QObject::connect(
- uiController, SIGNAL( destinationChanged( Location ) ),
- route, SLOT( setToLocation( Location ) )
+ uiController, SIGNAL( destinationChanged( Location* ) ),
+ route, SLOT( setToLocation( Location* ) )
);
QObject::connect(
uiController, SIGNAL( buttonClicked() ),
- gpsController, SLOT( startGps() )
+ gpsController, SLOT( getGps() )
);
mainWindow->show();