mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-29 10:03:55 -07:00
* Sort *every* file into a doxygen group. Took 7 hours 9 minutes Took 18 seconds Took 2 minutes * Lint some ingroup definitions. Took 10 minutes Took 2 seconds * Just include the groups in the Doxyfile in this commit. Took 3 minutes * Update some group comments so they link! Took 14 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
46 lines
902 B
C++
46 lines
902 B
C++
/**
|
|
* @file hand_counter.h
|
|
* @ingroup GameGraphicsPlayers
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef HANDCOUNTER_H
|
|
#define HANDCOUNTER_H
|
|
|
|
#include "board/abstract_graphics_item.h"
|
|
#include "board/graphics_item_type.h"
|
|
|
|
#include <QString>
|
|
|
|
class QPainter;
|
|
class QPixmap;
|
|
|
|
class HandCounter : public AbstractGraphicsItem
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
int number;
|
|
|
|
protected:
|
|
void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
|
|
public slots:
|
|
void updateNumber();
|
|
signals:
|
|
void showContextMenu(const QPoint &screenPos);
|
|
|
|
public:
|
|
enum
|
|
{
|
|
Type = typeOther
|
|
};
|
|
int type() const override
|
|
{
|
|
return Type;
|
|
}
|
|
explicit HandCounter(QGraphicsItem *parent = nullptr);
|
|
~HandCounter() override;
|
|
QRectF boundingRect() const override;
|
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
|
};
|
|
|
|
#endif
|