summaryrefslogtreecommitdiff
path: root/event_list.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'event_list.cpp')
-rw-r--r--event_list.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/event_list.cpp b/event_list.cpp
index 2654bef..a1e88a5 100644
--- a/event_list.cpp
+++ b/event_list.cpp
@@ -58,11 +58,11 @@ bool EventList::setData(const QModelIndex& index, const QVariant& value, int rol
return true;
}
-int EventList::insert(const int time)
+int EventList::insert(const QString& tag, const int time)
{
int row = time == -1 ? rowCount() : find(time);
beginInsertRows(QModelIndex{}, row, row);
- events.insert(row, {time});
+ events.insert(row, {time, tag});
endInsertRows();
return row;
}