add scroll bar to properties in cardinfotextwidget (#6201)

* add scroll bar to properties in cardinfotextwidget

* remove resizeevent trigger
This commit is contained in:
ebbit1q 2025-10-03 04:55:18 +02:00 committed by GitHub
parent c5b361e94d
commit a69bfb8cb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 39 additions and 15 deletions

View file

@ -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);