6 Star 9 Fork 4

依尚/CTP-Future

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainpopdialog.cpp 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
MeGustas 提交于 2017-04-21 15:25 . 1关于报单的错误问题修改
#include "mainpopdialog.h"
#include "ui_mainpopdialog.h"
MainPopDialog::MainPopDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::MainPopDialog)
{
ui->setupUi(this);
//ui->treeWidget->expandAll();
m_pSelfMarketDlg = new SelfMarketDialog();
m_bSubscribeContractsChoosedFlg= false;
ui->tabWidget->insertTab(0,m_pSelfMarketDlg,QStringLiteral("自选行情"));
ui->tabWidget->removeTab(1);
ui->tabWidget->removeTab(1);
ui->tabWidget->setCornerWidget(0);
connect(((SelfMarketDialog*)m_pSelfMarketDlg),SIGNAL(destroyWin()),this,SLOT(MyAccept()));
}
MainPopDialog::~MainPopDialog()
{
delete ui;
}
void MainPopDialog::AddContractsInfo(CThostFtdcInstrumentField *pInstrument){
((SelfMarketDialog*)m_pSelfMarketDlg)->AddContractsInfo(pInstrument);
}
void MainPopDialog::SubscribeContractsChoosed(){
if(m_bSubscribeContractsChoosedFlg == false){
((SelfMarketDialog*)m_pSelfMarketDlg)->SubscribeContractsChoosed();
m_bSubscribeContractsChoosedFlg = true;
}
}
void MainPopDialog::MyAccept(){
this->accept();
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/soso58/CTP-Future.git
[email protected]:soso58/CTP-Future.git
soso58
CTP-Future
CTP-Future
master

搜索帮助