Commit 0b84a355 authored by Nicolas Fella's avatar Nicolas Fella

Merge branch 'DepartureStopover' into 'master'

Port from DepartureRequest to StopoverRequest

See merge request kde/ktrip!13
parents c264e2de 22ee1422
......@@ -106,9 +106,9 @@ KPublicTransport::LocationRequest Controller::createLocationRequest(const QStrin
return req;
}
KPublicTransport::DepartureRequest Controller::createDepartureRequest()
KPublicTransport::StopoverRequest Controller::createStopoverRequest()
{
KPublicTransport::DepartureRequest req;
KPublicTransport::StopoverRequest req;
req.setStop(m_start);
QDateTime depTime(m_departureDate, m_departureTime);
req.setDateTime(depTime);
......
......@@ -25,7 +25,7 @@
#include <QTime>
#include <QVariant>
#include <KPublicTransport/DepartureRequest>
#include <KPublicTransport/StopoverRequest>
#include <KPublicTransport/JourneyRequest>
#include <KPublicTransport/Location>
#include <KPublicTransport/LocationRequest>
......@@ -55,7 +55,7 @@ public:
Q_INVOKABLE KPublicTransport::JourneyRequest createJourneyRequest();
Q_INVOKABLE KPublicTransport::LocationRequest createLocationRequest(const QString name);
Q_INVOKABLE KPublicTransport::DepartureRequest createDepartureRequest();
Q_INVOKABLE KPublicTransport::StopoverRequest createStopoverRequest();
Q_INVOKABLE void showOnMap(KPublicTransport::Location location);
......
......@@ -39,7 +39,7 @@ Kirigami.ScrollablePage
model: KPT.DepartureQueryModel {
id: theModel
request: Controller.createDepartureRequest()
request: Controller.createStopoverRequest()
manager: _manager
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment