Skip to content

Commit

Permalink
fix: solve a build issue and add a tip for integrated module
Browse files Browse the repository at this point in the history
  • Loading branch information
saturneric committed May 3, 2024
1 parent e0f69cc commit a092a81
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/sdk/GFSDKBasic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void GFExecuteCommandSync(const char* cmd, int32_t argc, const char** argv,
args.append(GpgFrontend::GFUnStrDup(argv[i]));
}

GpgFrontend::GpgCommandExecutor::ExecuteContext context{
GpgFrontend::GpgCommandExecutor::ExecuteContext const context{
cmd, args, [=](int exit_code, const QString& out, const QString& err) {
cb(data, exit_code, out.toUtf8(), err.toUtf8());
}};
Expand Down
3 changes: 3 additions & 0 deletions src/ui/dialog/controller/ModuleControllerDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ ModuleControllerDialog::ModuleControllerDialog(QWidget* parent)
ui_->tabWidget->setTabText(1, tr("Global Register Table"));
ui_->tabWidget->setTabText(2, tr("Debugger"));

ui_->tipsLabel->setText(
tr("Tips: Module name front with \"*\" stands for integrated module."));

this->setWindowTitle(tr("Module Controller"));

connect(ui_->moduleListView, &ModuleListView::SignalSelectModule, this,
Expand Down
17 changes: 17 additions & 0 deletions ui/ModuleControllerDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,23 @@
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="tipsLabel">
<property name="text">
<string>Tips: Module name front with &quot;*&quot; stands for integrated module.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab">
Expand Down

0 comments on commit a092a81

Please sign in to comment.