mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
Calender: Add ability to set the time of day for an event
This commit is contained in:
parent
cc4bb59a7e
commit
2a7b3ca4b8
Notes:
sideshowbarker
2024-07-17 09:53:45 +09:00
Author: https://github.com/atdykema
Commit: 2a7b3ca4b8
Pull-request: https://github.com/SerenityOS/serenity/pull/14244
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/bgianfo ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
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