21 lines
375 B
C++
21 lines
375 B
C++
#pragma once
|
|
|
|
#include <QListWidgetItem>
|
|
|
|
#include "datadragon.h"
|
|
|
|
class ChampRow : public QListWidgetItem {
|
|
|
|
public:
|
|
explicit ChampRow(QListWidget *parent = nullptr);
|
|
~ChampRow();
|
|
|
|
void setChamp(const DataDragon::ChampData& cd, QPixmap icon);
|
|
QString getChamp() const;
|
|
uint32_t getChampID() const;
|
|
QPixmap getIcon();
|
|
private:
|
|
uint32_t champid = -1;
|
|
QPixmap icon;
|
|
};
|