KOpeningHours
7 #ifndef KOPENINGHOURS_INTERVALMODEL_H
8 #define KOPENINGHOURS_INTERVALMODEL_H
10 #include "kopeninghours_export.h"
12 #include <KOpeningHours/OpeningHours>
14 #include <QAbstractListModel>
21 class IntervalModelPrivate;
30 Q_PROPERTY(
QDate beginDate READ beginDate WRITE setBeginDate NOTIFY beginDateChanged)
32 Q_PROPERTY(
QDate endDate READ endDate WRITE setEndDate NOTIFY endDateChanged)
37 Q_PROPERTY(
QString currentState READ currentState NOTIFY openingHoursChanged)
46 QDate beginDate() const;
47 void setBeginDate(
QDate beginDate);
48 QDate endDate() const;
49 void setEndDate(
QDate endDate);
59 int rowCount(
const QModelIndex& parent = {})
const override;
69 Q_INVOKABLE
QString formatTimeColumnHeader(
int hour,
int minute)
const;
72 void openingHoursChanged();
73 void beginDateChanged();
74 void endDateChanged();
78 std::unique_ptr<IntervalModelPrivate> d;
83 #endif // KOPENINGHOURS_INTERVALMODEL_H
@ DayBeginTimeRole
Same as DateRole, but as a date/time object.
@ ShortDayNameRole
Localized short day name for the current row.
@ DateRole
The date represented by the current row.
An OSM opening hours specification.
Model for showing opening intervals per day.
OSM opening hours parsing and evaluation.
@ IsTodayRole
true if the row represents the current day.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:54:27 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.