From c6713d0876ce2d99f912151c9884477606909681 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 17 Aug 2020 00:56:17 +0200 Subject: More UI work --- sqlitebackend.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sqlitebackend.h') diff --git a/sqlitebackend.h b/sqlitebackend.h index 0e7d339..baa3b19 100644 --- a/sqlitebackend.h +++ b/sqlitebackend.h @@ -21,7 +21,10 @@ public: Tag(long long int id, const Tag &other); Tag(QString name, const QPointF &anchor, const QVariantMap metadata=QVariantMap()); - bool isValid() { return valid; } + bool operator==(const Tag &t2) const { return id == t2.id; } + + bool isValid() const { return valid; } + QString humanReadableAnchor() { return QString("%1, %2").arg(anchor.x()).arg(anchor.y()); } long long int id; QString name; -- cgit