|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
#include "ProjectListWidget.h"
|
|
|
#include "RenameWidget.h"
|
|
|
+#include "ConfigExpertWidget.h"
|
|
|
|
|
|
#include <Widgets/Button.h>
|
|
|
#include <Widgets/LineEdit.h>
|
|
@@ -21,7 +22,7 @@ void ProjectView::initialize()
|
|
|
m_hBoxLayout = new QHBoxLayout(this);
|
|
|
|
|
|
m_listWidget = new QWidget(this);
|
|
|
- m_listWidget->setFixedWidth(300);
|
|
|
+ m_listWidget->setFixedWidth(260);
|
|
|
|
|
|
QPalette pal(m_listWidget->palette());
|
|
|
pal.setColor(QPalette::Background, QColor("#f3f3f3"));
|
|
@@ -41,13 +42,17 @@ void ProjectView::initialize()
|
|
|
m_deleteButton = new ToolButton(NEWFLICON(FluentIcon, DELETE), this);
|
|
|
m_deleteButton->setToolTip("删除工程");
|
|
|
|
|
|
- m_projListWidget = new ProjectListWidget(this);
|
|
|
+ m_projListWidget = new ProjectListWidget(this);
|
|
|
+
|
|
|
m_projDetailWidget = new QWidget(this);
|
|
|
- m_projLayout = new QVBoxLayout();
|
|
|
+ m_projLayout = new QVBoxLayout(m_projDetailWidget);
|
|
|
|
|
|
m_projNameLabel = new QLabel(this);
|
|
|
m_projNameLabel->setText("工程名");
|
|
|
|
|
|
+ m_configExpWidget = new ConfigExpertWidget(this);
|
|
|
+ m_configExpWidget->setFixedWidth(260);
|
|
|
+
|
|
|
m_renameWidget = new RenameWidget(this);
|
|
|
}
|
|
|
|
|
@@ -67,8 +72,9 @@ void ProjectView::initLayout()
|
|
|
|
|
|
m_hBoxLayout->addWidget(m_projDetailWidget);
|
|
|
|
|
|
- m_projDetailWidget->setLayout(m_projLayout);
|
|
|
m_projLayout->addWidget(m_projNameLabel, Qt::AlignTop);
|
|
|
+
|
|
|
+ m_hBoxLayout->addWidget(m_configExpWidget, Qt::AlignRight);
|
|
|
}
|
|
|
|
|
|
void ProjectView::connectSiganlsAndSlots()
|