123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #include "EvaluateView.h"
- #include "ProjectListWidget.h"
- #include "RenameWidget.h"
- #include <Widgets/Button.h>
- #include <Widgets/LineEdit.h>
- #include <QBoxLayout>
- #include <QLabel>
- EvaluateView::EvaluateView(QWidget *parent) : QWidget(parent)
- {
- initialize();
- initLayout();
- connectSiganlsAndSlots();
- }
- void EvaluateView::initialize()
- {
- m_hBoxLayout = new QHBoxLayout(this);
- m_listWidget = new QWidget(this);
- m_listWidget->setFixedWidth(260);
- QPalette pal(m_listWidget->palette());
- pal.setColor(QPalette::Background, QColor("#f3f3f3"));
- m_listWidget->setAutoFillBackground(true);
- m_listWidget->setPalette(pal);
- m_listLayout = new QVBoxLayout(m_listWidget);
- m_searchLineEdit = new LineEdit(this);
- m_searchLineEdit->setIsClearButtonEnabled(true);
- m_searchLineEdit->setPlaceholderText("搜索工程");
- m_projListWidget = new ProjectListWidget(this);
- m_projDetailWidget = new QWidget(this);
- m_projLayout = new QVBoxLayout();
- m_projNameLabel = new QLabel(this);
- m_projNameLabel->setText("工程名");
- }
- void EvaluateView::initLayout()
- {
- m_hBoxLayout->setMargin(0);
- m_hBoxLayout->addWidget(m_listWidget);
- m_listLayout->addWidget(m_searchLineEdit);
- m_listLayout->addWidget(m_projListWidget);
- m_hBoxLayout->addWidget(m_projDetailWidget);
- m_projDetailWidget->setLayout(m_projLayout);
- m_projLayout->addWidget(m_projNameLabel, Qt::AlignTop);
- }
- void EvaluateView::connectSiganlsAndSlots() { }
|