]> git.sesse.net Git - pkanalytics/blobdiff - players.h
Show gender (optional free-form field) in the player list.
[pkanalytics] / players.h
index bea45621faea0489e20c22055fc088ba6eb6cb5b..a8940ff28683ff2e665b49bf67e7a2e5dc7563a3 100644 (file)
--- a/players.h
+++ b/players.h
@@ -17,7 +17,7 @@ public:
        }
        int columnCount(const QModelIndex &column) const override
        {
-               return 2;
+               return 3;
        }
        QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
        QVariant data(const QModelIndex &index, int role) const override;
@@ -32,6 +32,7 @@ private:
                int player_id;
                std::string number;
                std::string name;
+               std::string gender;
        };
        std::vector<Player> players;