31 lines
783 B
C++
31 lines
783 B
C++
#include "baseContentDlg.h"
|
|
#include <QScrollArea>
|
|
#include <QFormLayout>
|
|
#include <QLabel>
|
|
#include <QSpinBox>
|
|
#include <QLineEdit>
|
|
#include <QDateEdit>
|
|
|
|
BaseContentDlg::BaseContentDlg(QWidget *parent)
|
|
: QDialog(parent)
|
|
,_curModelController(nullptr)
|
|
{
|
|
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;
|
|
}
|