mirror of
https://github.com/isledecomp/SIEdit.git
synced 2025-02-17 00:40:42 -05:00
app: put SI info label in scroll area in case it's too big
This commit is contained in:
parent
fc1899190f
commit
f56b409bf1
1 changed files with 8 additions and 1 deletions
|
@ -2,14 +2,21 @@
|
|||
|
||||
#include <info.h>
|
||||
#include <QDebug>
|
||||
#include <QScrollArea>
|
||||
|
||||
InfoPanel::InfoPanel(QWidget *parent) :
|
||||
Panel(parent)
|
||||
{
|
||||
int row = 0;
|
||||
|
||||
QScrollArea *scrollArea = new QScrollArea(this);
|
||||
// scrollArea->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
|
||||
scrollArea->setWidgetResizable(true);
|
||||
layout()->addWidget(scrollArea, row, 0);
|
||||
|
||||
m_Lbl = new QLabel();
|
||||
layout()->addWidget(m_Lbl, row, 0);
|
||||
m_Lbl->setAlignment(Qt::AlignLeft);
|
||||
scrollArea->setWidget(m_Lbl);
|
||||
|
||||
row++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue