File indexing completed on 2024-02-25 04:09:19

0001 /*
0002     SPDX-FileCopyrightText: 2003 Russell Steffen <rsteffen@bayarea.net>
0003     SPDX-FileCopyrightText: 2003 Stephan Zehetner <s.zehetner@nevox.org>
0004     SPDX-FileCopyrightText: 2006 Dmitry Suzdalev <dimsuz@gmail.com>
0005     SPDX-FileCopyrightText: 2006 Inge Wallin <inge@lysator.liu.se>
0006     SPDX-FileCopyrightText: 2006 Pierre Ducroquet <pinaraf@gmail.com>
0007     SPDX-FileCopyrightText: 2013 Alexander Schuch <aschuch247@gmail.com>
0008 
0009     SPDX-License-Identifier: GPL-2.0-or-later
0010 */
0011 
0012 #ifndef KONQUEST_STANDINGSWIDGET_H
0013 #define KONQUEST_STANDINGSWIDGET_H
0014 
0015 #include <QWidget>
0016 
0017 #include "../players/player.h"
0018 
0019 
0020 class QTableWidget;
0021 
0022 
0023 class StandingsWidget : public QWidget
0024 {
0025 
0026 public:
0027     explicit StandingsWidget(QWidget *parent);
0028     explicit StandingsWidget(QWidget *parent, const QList<Player *> &players);
0029     ~StandingsWidget() override;
0030 
0031     QSize sizeHint() const override;
0032     void update(const QList<Player *> &players);
0033 
0034 private:
0035     void setupTable();
0036 
0037     QTableWidget *m_standingsTable;
0038 };
0039 
0040 #endif // KONQUEST_STANDINGSWIDGET_H