diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-08-17 00:56:17 +0200 |
---|---|---|
committer | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-08-17 00:56:17 +0200 |
commit | c6713d0876ce2d99f912151c9884477606909681 (patch) | |
tree | 07717d3ffb8d78095f83bee5b0779a6bd264149a /sqlitebackend.h | |
parent | 2deadc6cfbf71e06908963fb1bae628cfe370f9d (diff) | |
download | numberator-c6713d0876ce2d99f912151c9884477606909681.tar.gz numberator-c6713d0876ce2d99f912151c9884477606909681.tar.bz2 numberator-c6713d0876ce2d99f912151c9884477606909681.zip |
More UI work
Diffstat (limited to 'sqlitebackend.h')
-rw-r--r-- | sqlitebackend.h | 5 |
1 files changed, 4 insertions, 1 deletions
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;
|