QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
QVariant data(const QModelIndex &index, int role) const override;
- unsigned insert_event(uint64_t t, int player_id, const std::string &type = "unknown"); // Returns the row.
+ unsigned insert_event(uint64_t t, std::optional<int> player_id, const std::string &type = "unknown"); // Returns the row.
void delete_event(unsigned row);
void set_event_type(unsigned row, const std::string &type);
uint64_t get_time(unsigned row) { return events[row].t; }