update
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "props/BlackholePropertySection.h"
|
||||
|
||||
#include "widgets/PropertyPanelControls.h"
|
||||
|
||||
#include <QFormLayout>
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
@@ -9,17 +11,17 @@ namespace gui {
|
||||
BlackholePropertySection::BlackholePropertySection(QWidget* parent)
|
||||
: PropertySectionWidget(parent) {
|
||||
auto* lay = new QVBoxLayout(this);
|
||||
lay->setContentsMargins(0, 0, 0, 0);
|
||||
lay->setSpacing(6);
|
||||
polishPropertyVBoxLayout(lay);
|
||||
|
||||
auto* form = new QFormLayout();
|
||||
form->setContentsMargins(0, 0, 0, 0);
|
||||
form->setSpacing(6);
|
||||
polishPropertyFormLayout(form);
|
||||
|
||||
m_name = new QLabel(this);
|
||||
m_status = new QLabel(this);
|
||||
m_method = new QLabel(this);
|
||||
m_method->setWordWrap(true);
|
||||
for (QLabel* lab : {m_name, m_status, m_method}) {
|
||||
lab->setWordWrap(true);
|
||||
}
|
||||
|
||||
form->addRow(QStringLiteral("黑洞"), m_name);
|
||||
form->addRow(QStringLiteral("是否解决"), m_status);
|
||||
|
||||
Reference in New Issue
Block a user