Mark favorites in radar site dialog

- No effect currently
- Does not persist through application restart
This commit is contained in:
Dan Paulat 2023-12-17 22:04:28 -06:00
parent e721633629
commit 9d673af291
6 changed files with 114 additions and 34 deletions

View file

@ -16,6 +16,19 @@ class RadarSiteModelImpl;
class RadarSiteModel : public QAbstractTableModel
{
public:
enum class Column : int
{
SiteId = 0,
Place = 1,
State = 2,
Country = 3,
Latitude = 4,
Longitude = 5,
Type = 6,
Distance = 7,
Favorite = 8
};
explicit RadarSiteModel(QObject* parent = nullptr);
~RadarSiteModel();
@ -29,6 +42,7 @@ public:
int role = Qt::DisplayRole) const override;
void HandleMapUpdate(double latitude, double longitude);
void ToggleFavorite(int row);
private:
std::unique_ptr<RadarSiteModelImpl> p;