Refactor css, clear path in code.
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
#include <QLabel>
|
||||
#include <qdebug.h>
|
||||
|
||||
#include "guimacros.h"
|
||||
#include "forms/scan/PatientInformationForm.h"
|
||||
#include "event/EventCenter.h"
|
||||
#include "log/UserOperationLog.h"
|
||||
@@ -47,8 +46,7 @@ ScanFormWidget::ScanFormWidget(QWidget* parent)
|
||||
, mLblE2(new QLabel(this))
|
||||
{
|
||||
|
||||
auto layout = new QHBoxLayout();
|
||||
ui->commandWidget->setLayout(layout);
|
||||
auto layout = new QHBoxLayout(ui->commandWidget);
|
||||
initProtocolUI(layout);
|
||||
layout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Expanding));
|
||||
addVerticalLine(layout);
|
||||
@@ -64,12 +62,14 @@ void ScanFormWidget::initProtocolUI(QHBoxLayout *layout) {
|
||||
mLblProtocol->setObjectName("protocolPanelTitle");
|
||||
layout->addWidget(mLblProtocol);
|
||||
addVerticalLine(layout);
|
||||
INIT_TOOL_BTN(Left, ":/icons/left.png")
|
||||
INIT_TOOL_BTN(Right, ":/icons/right.png")
|
||||
mBtnLeft->setObjectName("btnLeft");
|
||||
mBtnRight->setObjectName("btnRight");
|
||||
mBtnLeft->setText(tr("LEFT"));
|
||||
mBtnRight->setText(tr("RIGHT"));
|
||||
layout->addWidget(mBtnLeft);
|
||||
layout->addWidget(mBtnRight);
|
||||
|
||||
auto group = new QButtonGroup(this);
|
||||
auto group = new QButtonGroup(ui->commandWidget);
|
||||
mBtnLeft->setCheckable(true);
|
||||
mBtnLeft->setChecked(true);
|
||||
mBtnRight->setCheckable(true);
|
||||
@@ -120,11 +120,10 @@ void ScanFormWidget::initScanContent() {
|
||||
}
|
||||
|
||||
void ScanFormWidget::initScanControlBar(QHBoxLayout *layout){
|
||||
INIT_TOOL_BTN(Refresh, ":/icons/scan_e.png")
|
||||
INIT_TOOL_BTN(Preview, ":/icons/rec.png")
|
||||
|
||||
INIT_TOOL_BTN(Stop, ":/icons/stop.png")
|
||||
INIT_TOOL_BTN(Scan, ":/icons/scan.png")
|
||||
mBtnRefresh->setObjectName("btnRefresh");
|
||||
mBtnPreview->setObjectName("btnPreview");
|
||||
mBtnStop->setObjectName("btnStop");
|
||||
mBtnScan->setObjectName("btnScan");
|
||||
|
||||
mBtnRefresh->setText(tr("Refresh"));
|
||||
mBtnPreview->setText(tr("Preview"));
|
||||
@@ -135,6 +134,11 @@ void ScanFormWidget::initScanControlBar(QHBoxLayout *layout){
|
||||
mBtnRefresh->setEnabled(false);
|
||||
mBtnPreview->setEnabled(false);
|
||||
mBtnStop->setEnabled(false);
|
||||
|
||||
layout->addWidget(mBtnScan);
|
||||
layout->addWidget(mBtnRefresh);
|
||||
layout->addWidget(mBtnPreview);
|
||||
layout->addWidget(mBtnStop);
|
||||
connect(mBtnRefresh, &QToolButton::clicked, [=]() {
|
||||
QString patientInf(mPatInf->getCurrentPatientJsonString(true));
|
||||
LOG_USER_OPERATION(StartRefresh)
|
||||
|
||||
Reference in New Issue
Block a user