mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:27:34 +00:00
Calender: Add ability to set the time of day for an event
This commit is contained in:
parent
cc4bb59a7e
commit
2a7b3ca4b8
2 changed files with 74 additions and 1 deletions
|
@ -45,5 +45,24 @@ private:
|
|||
MonthListModel() = default;
|
||||
};
|
||||
|
||||
class MeridiemListModel final : public GUI::Model {
|
||||
public:
|
||||
enum Column {
|
||||
Meridiem,
|
||||
__Count,
|
||||
};
|
||||
|
||||
static NonnullRefPtr<MeridiemListModel> create() { return adopt_ref(*new MeridiemListModel); }
|
||||
virtual ~MeridiemListModel() override = default;
|
||||
|
||||
virtual int row_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override;
|
||||
virtual int column_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override { return Column::__Count; }
|
||||
virtual String column_name(int) const override;
|
||||
virtual GUI::Variant data(const GUI::ModelIndex&, GUI::ModelRole) const override;
|
||||
|
||||
private:
|
||||
MeridiemListModel() = default;
|
||||
};
|
||||
|
||||
Core::DateTime m_date_time;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue