Refactor css file.
This commit is contained in:
@@ -46,21 +46,9 @@ ScanFormWidget::ScanFormWidget(QWidget* parent)
|
||||
, mLblParams(new QLabel(this))
|
||||
, mLblE2(new QLabel(this))
|
||||
{
|
||||
const char* style = "QWidget#PatientInformationForm{min-width:300px;max-width:300px; margin-right:10}"
|
||||
"QWidget#patientinformation_panel{ border-right:1px solid #0078d8}"
|
||||
"QWidget#patientinformation_panel QLabel{font-size:20px; }"
|
||||
"QWidget#param_widget{min-width:300px;max-width:300px;border-left:1px solid #0078d8}"
|
||||
"QWidget#broadcast_widget{border:2px solid #515151; border-radius: 20px; background-color:black}"
|
||||
"QWidget#broadcast_widget QLabel{background-color:black}"
|
||||
"QLabel#lbl_protocol{font-size:32px; margin:0; color:silver}"
|
||||
"QLabel#lbl_title,QLabel#lbl_ptitle{font-size:20px;margin:0; border-bottom:1px solid silver}"
|
||||
"QLabel#lbl_end{font-size:20px;margin:0; border-top:1px solid #0078d8}"
|
||||
"QLabel#lbl_e{font-size:20px;}"
|
||||
"";
|
||||
this->setStyleSheet(this->styleSheet().append(style));
|
||||
|
||||
auto layout = new QHBoxLayout();
|
||||
ui->commandWidget->setLayout(layout);
|
||||
|
||||
initProtocolUI(layout);
|
||||
layout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Expanding));
|
||||
addVerticalLine(layout);
|
||||
@@ -73,7 +61,7 @@ ScanFormWidget::ScanFormWidget(QWidget* parent)
|
||||
void ScanFormWidget::initProtocolUI(QHBoxLayout *layout) {
|
||||
mLblProtocol->setText(tr("Protocol"));
|
||||
mLblProtocol->setAlignment(Qt::AlignTop);
|
||||
mLblProtocol->setObjectName("lbl_protocol");
|
||||
mLblProtocol->setObjectName("protocolPanelTitle");
|
||||
layout->addWidget(mLblProtocol);
|
||||
addVerticalLine(layout);
|
||||
INIT_TOOL_BTN(Left, ":/icons/left.png")
|
||||
@@ -95,40 +83,40 @@ void ScanFormWidget::initScanContent() {
|
||||
ui->contentWidget->setLayout(contentLayout);
|
||||
|
||||
contentLayout->addWidget(mPatInf);
|
||||
auto param_widget = new QWidget(this);
|
||||
auto broadcast_widget = new QWidget(this);
|
||||
broadcast_widget->setObjectName("broadcast_widget");
|
||||
auto paramWidget = new QWidget(this);
|
||||
auto broadcastWidget = new QWidget(this);
|
||||
broadcastWidget->setObjectName("broadcastWidget");
|
||||
mViewer->setObjectName("viewer");
|
||||
mViewer->setFixedSize(800, 800);
|
||||
mViewer->setText("");
|
||||
auto viewerLayout = new QHBoxLayout(mViewer);
|
||||
broadcast_widget->setLayout(viewerLayout);
|
||||
broadcastWidget->setLayout(viewerLayout);
|
||||
viewerLayout->addWidget(mViewer);
|
||||
contentLayout->addWidget(broadcast_widget);
|
||||
param_widget->setObjectName("param_widget");
|
||||
auto paramLayout = new QVBoxLayout(param_widget);
|
||||
contentLayout->addWidget(broadcastWidget);
|
||||
paramWidget->setObjectName("param_widget");
|
||||
auto paramLayout = new QVBoxLayout(paramWidget);
|
||||
mLblPreview->setText(tr("Preview Parameters"));
|
||||
mLblPreview->setObjectName("lbl_title");
|
||||
mLblPreview->setObjectName("parameterTitle");
|
||||
paramLayout->addWidget(mLblPreview);
|
||||
mLblE->setWordWrap(true);
|
||||
mLblE->setObjectName("lbl_e");
|
||||
mLblE->setObjectName("placeholder");
|
||||
mLblE->setText(tr("some settings\n\nparameters\n"));
|
||||
paramLayout->addWidget(mLblE);
|
||||
auto lbl_end = new QLabel(this);
|
||||
lbl_end->setObjectName("lbl_end");
|
||||
lbl_end->setObjectName("endSpaceLine");
|
||||
paramLayout->addWidget(lbl_end);
|
||||
mLblParams->setText(tr("Scan Parameters"));
|
||||
mLblParams->setObjectName("lbl_title");
|
||||
mLblParams->setObjectName("parameterTitle");
|
||||
paramLayout->addWidget(mLblParams);
|
||||
mLblE2->setWordWrap(true);
|
||||
mLblE2->setObjectName("lbl_e");
|
||||
mLblE2->setObjectName("placeholder");
|
||||
mLblE2->setText(tr("some settings\n\nparameters\n"));
|
||||
paramLayout->addWidget(mLblE2);
|
||||
auto lbl_end2 = new QLabel(this);
|
||||
lbl_end2->setObjectName("lbl_end");
|
||||
lbl_end2->setObjectName("endSpaceLine");
|
||||
paramLayout->addWidget(lbl_end2);
|
||||
paramLayout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding));
|
||||
contentLayout->addWidget(param_widget);
|
||||
contentLayout->addWidget(paramWidget);
|
||||
}
|
||||
|
||||
void ScanFormWidget::initScanControlBar(QHBoxLayout *layout){
|
||||
|
||||
Reference in New Issue
Block a user