mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-17 04:27:45 -07:00
--------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> Co-authored-by: ebbit1q <ebbit1q@gmail.com>
38 lines
758 B
C++
38 lines
758 B
C++
/**
|
|
* @file card_info_text_widget.h
|
|
* @ingroup CardWidgets
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef CARDINFOTEXT_H
|
|
#define CARDINFOTEXT_H
|
|
|
|
#include <QFrame>
|
|
#include <libcockatrice/card/card_info.h>
|
|
class QLabel;
|
|
class QScrollArea;
|
|
class QTextEdit;
|
|
|
|
class CardInfoTextWidget : public QFrame
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
QLabel *propsLabel;
|
|
QScrollArea *propsScroll;
|
|
QTextEdit *textLabel;
|
|
CardInfoPtr info;
|
|
void setTexts(const QString &propsText, const QString &textText);
|
|
|
|
public:
|
|
explicit CardInfoTextWidget(QWidget *parent = nullptr);
|
|
void retranslateUi();
|
|
void setInvalidCardName(const QString &cardName);
|
|
|
|
signals:
|
|
void linkActivated(const QString &link);
|
|
public slots:
|
|
void setCard(CardInfoPtr card);
|
|
};
|
|
|
|
#endif
|