|
@@ -24,6 +24,8 @@ CMindView::CMindView(QWidget *parent) : QGraphicsView(new QGraphicsScene(), pare
|
|
|
|
|
|
setStyleSheet("QGraphicsView {border: 1px solid rgba(0, 0, 0, 0.073);background: rgb(244, 244, "
|
|
|
"255);}");
|
|
|
+
|
|
|
+ testData();
|
|
|
}
|
|
|
|
|
|
CMind *CMindView::mind() const
|
|
@@ -178,6 +180,22 @@ void CMindView::mousePressEvent(QMouseEvent *event)
|
|
|
QGraphicsView::mousePressEvent(event);
|
|
|
}
|
|
|
|
|
|
+void CMindView::testData()
|
|
|
+{
|
|
|
+ int num[19] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 };
|
|
|
+ int pNum[19] = { -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 };
|
|
|
+ QStringList name = { "技术方案测试平台", "展开与撤收能力", "覆盖能力", "传输能力", "组网能力",
|
|
|
+ "展开时间", "撤收时间", "携行重量", "操作人数", "地域覆盖范围",
|
|
|
+ "节点小区覆盖", "动中通", "最高传输速度", "误码率", "通信时延",
|
|
|
+ "平均入网时间", "业务成功率", "组网模式", "网络规模" };
|
|
|
+
|
|
|
+ for (int i = 0; i < 19; i++) {
|
|
|
+ CNodeData n = CNodeData(0, 32, num[i], pNum[i]);
|
|
|
+ n.name = name[i];
|
|
|
+ addNode(n);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
void CMindView::slotAddSubNode(int pNumber)
|
|
|
{
|
|
|
if (pNumber < 0) {
|