Handle selection of items in the alert view

This commit is contained in:
Dan Paulat 2022-10-16 00:49:00 -05:00
parent f8021b00bf
commit c117078335
5 changed files with 60 additions and 4 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include <scwx/qt/types/text_event_key.hpp>
#include <scwx/common/geographic.hpp>
#include <memory>
@ -21,6 +22,9 @@ public:
explicit AlertModel(QObject* parent = nullptr);
~AlertModel();
types::TextEventKey key(const QModelIndex& index) const;
common::Coordinate centroid(const types::TextEventKey& key) const;
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
int columnCount(const QModelIndex& parent = QModelIndex()) const override;