From 52ad1c3ba8df7089c91c10ca40fe760fc075e994 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 12 Dec 2023 10:31:54 +0100 Subject: [PATCH] Minor: add constructor taking some parameters.. --- library/include/mobilisis/tariff_time_range.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/include/mobilisis/tariff_time_range.h b/library/include/mobilisis/tariff_time_range.h index 8bca48e..87b6bd1 100644 --- a/library/include/mobilisis/tariff_time_range.h +++ b/library/include/mobilisis/tariff_time_range.h @@ -16,6 +16,12 @@ public: : m_time_from(QTime()) , m_time_until(QTime()) {} + TariffTimeRange(QTime const& from, QTime const &until) + : m_time_from(from) + , m_time_until(until) { + + } + void setTimeRange(QTime const& from, QTime const &until) { m_time_from = from; m_time_until = until;