Commit dab36ce5 authored by Volker Krause's avatar Volker Krause

Improve API consistency

parent 62c87941
......@@ -69,7 +69,7 @@ private Q_SLOTS:
QSignalSpy addSpy(&mgr, &ReservationManager::reservationAdded);
QVERIFY(addSpy.isValid());
QSignalSpy updateSpy(&mgr, &ReservationManager::reservationUpdated);
QSignalSpy updateSpy(&mgr, &ReservationManager::reservationChanged);
QVERIFY(updateSpy.isValid());
QSignalSpy rmSpy(&mgr, &ReservationManager::reservationRemoved);
QVERIFY(rmSpy.isValid());
......@@ -128,7 +128,7 @@ private Q_SLOTS:
QSignalSpy addSpy(&mgr, &ReservationManager::reservationAdded);
QVERIFY(addSpy.isValid());
QSignalSpy updateSpy(&mgr, &ReservationManager::reservationUpdated);
QSignalSpy updateSpy(&mgr, &ReservationManager::reservationChanged);
QVERIFY(updateSpy.isValid());
QVERIFY(mgr.batches().empty());
......
......@@ -215,7 +215,7 @@ void ReservationManager::updateReservation(const QString &resId, const QVariant
const auto oldRes = reservation(resId);
storeReservation(resId, res);
emit reservationUpdated(resId);
emit reservationChanged(resId);
updateBatch(resId, res, oldRes);
}
......
......@@ -63,7 +63,7 @@ public:
Q_INVOKABLE void removeBatch(const QString &batchId);
Q_SIGNALS:
void reservationAdded(const QString &id);
void reservationUpdated(const QString &id);
void reservationChanged(const QString &id);
void reservationRemoved(const QString &id);
void batchAdded(const QString &batchId);
......
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