Skip to content

Commit

Permalink
chore: modify button style in open project dialog
Browse files Browse the repository at this point in the history
set default button

Log:
Change-Id: I944aba0e8b682b4760900b15e95e9bb579953d71
  • Loading branch information
deepin-mozart committed Aug 8, 2024
1 parent 55b3e8d commit ed3672f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions assets/translations/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3462,7 +3462,7 @@ repos path: %0</source>
</message>
<message>
<location filename="../../src/plugins/project/projectcore.cpp" line="302"/>
<source>Kit:</source>
<source>Project Type:</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand All @@ -3471,7 +3471,7 @@ repos path: %0</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/project/projectcore.cpp" line="308"/>
<location filename="../../src/plugins/project/projectcore.cpp" line="309"/>
<source>Confirm</source>
<translation type="unfinished"></translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions assets/translations/zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3495,16 +3495,16 @@ repos path: %0</source>
</message>
<message>
<location filename="../../src/plugins/project/projectcore.cpp" line="302"/>
<source>Kit:</source>
<translation>构建工具:</translation>
<source>Project Type:</source>
<translation>工程类型:</translation>
</message>
<message>
<location filename="../../src/plugins/project/projectcore.cpp" line="308"/>
<source>Cancel</source>
<translation>取消</translation>
</message>
<message>
<location filename="../../src/plugins/project/projectcore.cpp" line="308"/>
<location filename="../../src/plugins/project/projectcore.cpp" line="309"/>
<source>Confirm</source>
<translation>确定</translation>
</message>
Expand Down
5 changes: 3 additions & 2 deletions src/plugins/project/projectcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,14 @@ void ProjectCore::confirmProjectKit(const QString &path)
auto layout = new QHBoxLayout(widget);
layout->setAlignment(Qt::AlignLeft);

QLabel *label = new QLabel(tr("Kit:"), widget);
QLabel *label = new QLabel(tr("Project Type:"), widget);
label->setFixedWidth(100);
QComboBox *cbBox = new QComboBox(widget);
layout->addWidget(label);
layout->addWidget(cbBox);
dialog.addContent(widget);
dialog.addButtons({ tr("Cancel"), tr("Confirm") });
dialog.addButton(tr("Cancel"));
dialog.addButton(tr("Confirm"), true, DDialog::ButtonRecommend);
auto originalSize = dialog.size();

auto projectService = dpfGetService(ProjectService);
Expand Down

0 comments on commit ed3672f

Please sign in to comment.