From ef278ac335b8fd0b8c3f193a1d9cb5a681257b17 Mon Sep 17 00:00:00 2001 From: gaozheng Date: Wed, 10 Jun 2026 07:51:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(ela):=20P3-b=20=E9=A1=B9=E7=9B=AE=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=BC=B9=E7=AA=97=20Ela=20=E5=8C=96=20=E2=80=94=20?= =?UTF-8?q?=E8=BE=93=E5=85=A5/=E4=B8=8B=E6=8B=89/=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E2=86=92Ela*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nameEdit_→ElaLineEdit, typeCombo_→ElaComboBox, 搜索/重置/上一页/下一页→ElaPushButton; 表格(QTableWidget)保留并靠 P2 暗色 QSS 联动 --- src/app/ProjectListDialog.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/app/ProjectListDialog.cpp b/src/app/ProjectListDialog.cpp index 23c28a6..cbc7531 100644 --- a/src/app/ProjectListDialog.cpp +++ b/src/app/ProjectListDialog.cpp @@ -16,6 +16,10 @@ #include "Theme.hpp" +#include +#include +#include + namespace geopro::app { namespace { QString statusText(int s) { @@ -45,18 +49,18 @@ ProjectListDialog::ProjectListDialog(data::IProjectRepository& repo, QWidget* pa auto* filter = new QHBoxLayout(); filter->addWidget(new QLabel(QStringLiteral("项目名称"), this)); - nameEdit_ = new QLineEdit(this); + nameEdit_ = new ElaLineEdit(this); nameEdit_->setPlaceholderText(QStringLiteral("输入项目名称")); nameEdit_->setFixedWidth(200); filter->addWidget(nameEdit_); filter->addSpacing(8); filter->addWidget(new QLabel(QStringLiteral("项目类型"), this)); - typeCombo_ = new QComboBox(this); + typeCombo_ = new ElaComboBox(this); typeCombo_->setFixedWidth(160); filter->addWidget(typeCombo_); filter->addSpacing(8); - auto* searchBtn = new QPushButton(QStringLiteral("搜索"), this); - auto* resetBtn = new QPushButton(QStringLiteral("重置"), this); + auto* searchBtn = new ElaPushButton(QStringLiteral("搜索"), this); + auto* resetBtn = new ElaPushButton(QStringLiteral("重置"), this); filter->addWidget(searchBtn); filter->addWidget(resetBtn); filter->addStretch(); @@ -81,8 +85,8 @@ ProjectListDialog::ProjectListDialog(data::IProjectRepository& repo, QWidget* pa pageLabel_ = new QLabel(this); bottom->addWidget(pageLabel_); bottom->addStretch(); - prevBtn_ = new QPushButton(QStringLiteral("上一页"), this); - nextBtn_ = new QPushButton(QStringLiteral("下一页"), this); + prevBtn_ = new ElaPushButton(QStringLiteral("上一页"), this); + nextBtn_ = new ElaPushButton(QStringLiteral("下一页"), this); bottom->addWidget(prevBtn_); bottom->addWidget(nextBtn_); root->addLayout(bottom);