Skip to content

Commit

Permalink
修复struct成员在非本thrift文件定义导致的不显示字段名
Browse files Browse the repository at this point in the history
  • Loading branch information
HuaGouFdog committed May 14, 2024
1 parent a456190 commit d9e4071
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/thriftwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2056,6 +2056,12 @@ QString thriftwidget::handleString(QString &str, QString isEnd, QString resType,

QString thriftwidget::handleStruct(QString &str, QString isEnd, QString outType, QString outParam)
{
qDebug() << " outType = " << outType;
if (outType.contains(".")) {
int index = outType.lastIndexOf(".");
outType = outType.mid(index + 1);
qDebug() << "发现非本文件结构体,删除前缀后=" << outType;
}
if (outParam == "") {
ui->textEdit_data->append(addColorBracketsHtml(getRetract() + "{"));
} else {
Expand Down

0 comments on commit d9e4071

Please sign in to comment.