mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-19 21:33:54 -07:00
add scroll bar to properties in cardinfotextwidget (#6201)
* add scroll bar to properties in cardinfotextwidget * remove resizeevent trigger
This commit is contained in:
parent
c5b361e94d
commit
a69bfb8cb8
2 changed files with 39 additions and 15 deletions
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include <QFrame>
|
||||
class QLabel;
|
||||
class QScrollArea;
|
||||
class QTextEdit;
|
||||
|
||||
class CardInfoTextWidget : public QFrame
|
||||
|
|
@ -18,9 +19,11 @@ class CardInfoTextWidget : public QFrame
|
|||
Q_OBJECT
|
||||
|
||||
private:
|
||||
QLabel *nameLabel;
|
||||
QLabel *propsLabel;
|
||||
QScrollArea *propsScroll;
|
||||
QTextEdit *textLabel;
|
||||
CardInfoPtr info;
|
||||
void setTexts(const QString &propsText, const QString &textText);
|
||||
|
||||
public:
|
||||
explicit CardInfoTextWidget(QWidget *parent = nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue