2025-05-16 19:20:46 +08:00
|
|
|
#include "baseContentDlg.h"
|
|
|
|
|
#include <QScrollArea>
|
|
|
|
|
#include <QFormLayout>
|
|
|
|
|
#include <QLabel>
|
|
|
|
|
#include <QSpinBox>
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
#include <QDateEdit>
|
|
|
|
|
|
|
|
|
|
BaseContentDlg::BaseContentDlg(QWidget *parent)
|
|
|
|
|
: QDialog(parent)
|
2025-07-04 18:47:49 +08:00
|
|
|
,_curModelController(nullptr)
|
2025-05-16 19:20:46 +08:00
|
|
|
{
|
|
|
|
|
setWindowFlags(Qt::Widget);
|
|
|
|
|
//this->setWindowFlags(Qt::FramelessWindowHint | windowFlags());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BaseContentDlg::~BaseContentDlg()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QFormLayout* BaseContentDlg::createFormLayout(QWidget* parent)
|
|
|
|
|
{
|
|
|
|
|
QFormLayout* layout = new QFormLayout(parent);
|
|
|
|
|
layout->setHorizontalSpacing(20); // 标签与控件间距
|
|
|
|
|
layout->setVerticalSpacing(12); // 行间距
|
|
|
|
|
layout->setLabelAlignment(Qt::AlignRight); // 标签右对齐
|
|
|
|
|
layout->setContentsMargins(12, 12, 12, 12); // 内边距
|
|
|
|
|
return layout;
|
|
|
|
|
}
|