提交 df1f92bc 编写于 作者: D dev@dev.com

更正笔误,以便保留上一次设置的模块名称

上级 2368beb1
...@@ -914,7 +914,7 @@ void PDesignerView::on_action_rename_triggered() ...@@ -914,7 +914,7 @@ void PDesignerView::on_action_rename_triggered()
QString tooltip = project()->vec_cells()[node]->function_tooltip(func); QString tooltip = project()->vec_cells()[node]->function_tooltip(func);
bool ok; bool ok;
QString newtip = QInputDialog::getText(this,tr("Set Friendly Name"),tr("Tooltip"),QLineEdit::Normal, QString newtip = QInputDialog::getText(this,tr("Set Friendly Name"),tr("Tooltip"),QLineEdit::Normal,
func,&ok); tooltip,&ok);
if (ok && newtip.size()) if (ok && newtip.size())
project()->vec_cells()[node]->set_function_tooltip(func,newtip); project()->vec_cells()[node]->set_function_tooltip(func,newtip);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册