]> git.sesse.net Git - pkanalytics/blobdiff - players.h
Fix a threading issue, where we would call into the Qt thread from the video thread.
[pkanalytics] / players.h
index 24c10b9843255890f604272bcf7d25cd69e9918b..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;
@@ -25,12 +25,14 @@ public:
        int get_player_id(unsigned row) const {
                return players[row].player_id;
        }
+       std::string get_player_name_by_id(unsigned player_id);
 
 private:
        struct Player {
                int player_id;
                std::string number;
                std::string name;
+               std::string gender;
        };
        std::vector<Player> players;