34 lines
524 B
C++
34 lines
524 B
C++
#ifndef CARDINFOPICTURE_H
|
|
#define CARDINFOPICTURE_H
|
|
|
|
#include <QLabel>
|
|
|
|
class AbstractCardItem;
|
|
class CardInfo;
|
|
|
|
class CardInfoPicture : public QLabel {
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
void hasPictureChanged();
|
|
|
|
private:
|
|
CardInfo *info;
|
|
bool noPicture;
|
|
|
|
public:
|
|
CardInfoPicture(int maximumWidth, QWidget *parent = 0);
|
|
bool hasPicture() const { return !noPicture; }
|
|
|
|
private:
|
|
void setNoPicture(bool status);
|
|
|
|
public slots:
|
|
void setCard(CardInfo *card);
|
|
|
|
private slots:
|
|
void updatePixmap();
|
|
|
|
};
|
|
|
|
#endif
|