提交 17fcddd4 编写于 作者: L littleGrayEagle

Merge branch 'qt6' of git@gitcode.net:coloreaglestdio/taskbus.git into qt6

......@@ -209,7 +209,7 @@ namespace TASKBUS {
++pt;
info->m_name = QString::fromLocal8Bit(pt);
return true;
return strlen(pt)>0?true:false;
#endif
return false;
}
......
......@@ -29,7 +29,7 @@ QVariant WatchMemModule::headerData(int section, Qt::Orientation orientation, in
static const QString cnames[7] = {tr("PID"),tr("Name"),tr("Memory"),
tr("pack_reci"),tr("pack_sent"),tr("bytes_reci"),tr("bytes_sent")
};
if (section && section<7)
if (section >=0 && section<7)
return cnames[section];
}
else if (orientation==Qt::Vertical)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册