Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 22ee1422 authored by Tobias Fella's avatar Tobias Fella

Port from DepartureRequest to StopoverRequest

parent c264e2de
......@@ -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