|
@ -31,7 +31,7 @@ ZRegItem::ZRegItem(QWidget *parent, QString &title, int addr, uint32_t flag) : Q |
|
|
m_layout->setMargin(0); |
|
|
m_layout->setMargin(0); |
|
|
// m_layout->setSpacing(0);
|
|
|
// m_layout->setSpacing(0);
|
|
|
|
|
|
|
|
|
m_horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
|
|
|
|
|
|
|
m_horizontalSpacer = new QSpacerItem(30, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
|
m_lable = new QLabel(title, this); |
|
|
m_lable = new QLabel(title, this); |
|
|
m_val = new QLineEdit(this); |
|
|
m_val = new QLineEdit(this); |
|
|
m_InfoVal = new QLineEdit(this); |
|
|
m_InfoVal = new QLineEdit(this); |
|
@ -75,6 +75,9 @@ ZRegTableList::ZRegTableList(QWidget *parent, const QString &title) // |
|
|
// RegBox
|
|
|
// RegBox
|
|
|
{ |
|
|
{ |
|
|
m_regBox = new QGroupBox("寄存器列表", this); |
|
|
m_regBox = new QGroupBox("寄存器列表", this); |
|
|
|
|
|
auto sp = QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); |
|
|
|
|
|
sp.setVerticalStretch(1); |
|
|
|
|
|
m_regBox->setSizePolicy(sp); |
|
|
{ |
|
|
{ |
|
|
QScrollArea *testar = new QScrollArea(); // 创建滚动显示区域
|
|
|
QScrollArea *testar = new QScrollArea(); // 创建滚动显示区域
|
|
|
{ |
|
|
{ |
|
@ -83,8 +86,8 @@ ZRegTableList::ZRegTableList(QWidget *parent, const QString &title) // |
|
|
testar->setAlignment(Qt::AlignRight); // 设置滚动条位置
|
|
|
testar->setAlignment(Qt::AlignRight); // 设置滚动条位置
|
|
|
testar->setWidget(m_arWidget); // 将设置好的幕布嵌入到滚动显示区域
|
|
|
testar->setWidget(m_arWidget); // 将设置好的幕布嵌入到滚动显示区域
|
|
|
testar->setWidgetResizable(true); // 设置幕布自适应大小
|
|
|
testar->setWidgetResizable(true); // 设置幕布自适应大小
|
|
|
testar->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred)); |
|
|
|
|
|
testar->setMinimumSize(800, 800); |
|
|
|
|
|
|
|
|
testar->setSizePolicy(sp); |
|
|
|
|
|
testar->setMinimumSize(700, 500); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
m_regBoxLayoutL1 = new QVBoxLayout(m_regBox); |
|
|
m_regBoxLayoutL1 = new QVBoxLayout(m_regBox); |
|
|