summary refs log tree commit diff
path: root/src/InviteesModel.h
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-07-19 12:31:20 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-07-20 21:48:03 -0400
commit4384554587c3e9327382f2f9cbc36e893fbe4dab (patch)
tree6280af2fb8af90d4abc4d860d1a654096101bca0 /src/InviteesModel.h
parentUse standardized padding (diff)
downloadnheko-4384554587c3e9327382f2f9cbc36e893fbe4dab.tar.xz
Only invite if there is something/someone to invite
Diffstat (limited to '')
-rw-r--r--src/InviteesModel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/InviteesModel.h b/src/InviteesModel.h
index ac9208a0..a4e19ebb 100644
--- a/src/InviteesModel.h
+++ b/src/InviteesModel.h
@@ -30,6 +30,8 @@ class InviteesModel : public QAbstractListModel
 {
         Q_OBJECT
 
+        Q_PROPERTY(int count READ rowCount NOTIFY countChanged)
+
 public:
         enum Roles
         {
@@ -52,6 +54,7 @@ public:
 
 signals:
         void accept();
+        void countChanged();
 
 private:
         QVector<Invitee *> invitees_;