From e726146c9699f7fbedbbce99f83529bc4fcbdaa1 Mon Sep 17 00:00:00 2001
From: wumu <mayi@mayi.com>
Date: 星期三, 20 八月 2025 23:36:42 +0800
Subject: [PATCH] 0820 策略变动

---
 getstocklist.cpp |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/getstocklist.cpp b/getstocklist.cpp
index 8bc6012..2bb6f5e 100644
--- a/getstocklist.cpp
+++ b/getstocklist.cpp
@@ -45,9 +45,9 @@
 
     // 妯″瀷鍙婅〃鏍艰鍥�
     m_model = new QStandardItemModel(this);
-    m_model->setColumnCount(10); // 璁剧疆10鍒�
+    m_model->setColumnCount(11); // 璁剧疆11鍒�
     QStringList labels;
-    labels<<"鑲$エ鍚嶅瓧"<<"鑲$エ浠e彿"<<"鎬诲競鍊�(浜�)"<<"娴侀�氬競鍊�(浜�)"<<"娑ㄨ穼骞�(%)"<<"鏀剁洏浠�"<<"鎴愪氦棰�(浜�)"<<"鎴愪氦閲�(鎵�)"<<"鎹㈡墜鐜�(%)"<<"甯傜泩鐜�";
+    labels<<"鑲$エ鍚嶅瓧"<<"鑲$エ浠e彿"<<"鎬诲競鍊�(浜�)"<<"娴侀�氬競鍊�(浜�)"<<"娑ㄨ穼骞�(%)"<<"鏀剁洏浠�"<<"鎴愪氦棰�(浜�)"<<"鎴愪氦閲�(鎵�)"<<"鎹㈡墜鐜�(%)"<<"甯傜泩鐜�"<<"浜ゆ槗棰濇帓鍚�";
     m_model->setHorizontalHeaderLabels(labels); // 璁剧疆妯″瀷鐨勫垪鏍囩鍚�
     m_customModel = new CustomSortProxyModel;
     m_customModel->setSourceModel(m_model); // 璁剧疆婧愭ā鍨�
@@ -1072,3 +1072,13 @@
     qDebug()<<"鍘嗗彶鍒颁俊鎭祴鍊煎畬鎴� 鏉℃暟:"<<m_model->rowCount();
     qDebug()<<QDateTime::currentDateTime();
 }
+
+void GetStockList::getStockNamesByNum(int num)
+{
+    for(int i=0;i<num;++i){
+        //qDebug()<<i+1<<m_model->item(i,0)->text();
+        qDebug()<<i+1<<m_customModel->data(m_customModel->index(i,0)).toString();
+//        emit sendNameToAnalysis(m_model->item(i,0)->text()); // 鍙戝悕瀛楃粰缂撳瓨鍒嗘瀽鐣岄潰鏉ヤ緷娆″垎鏋�
+        emit sendNameToAnalysis(m_customModel->data(m_customModel->index(i,0)).toString());
+    }
+}

--
Gitblit v1.8.0