void ContractForm::on_pushButtonTick_clicked() { QString symbol = ui->lineEditSymbol->text(); QString exchange = ui->lineEditExchange->text(); if (symbol.length() != 0 && exchange.length() != 0) { TickForm* form = new TickForm(); form->setWindowFlags(Qt::Window); form->init(symbol, exchange); centerWindow(form); form->show(); } }
void StatForm::on_pushButtonShowData_clicked() { QString symbol = ui->lineEditSymbol->text(); QString exchange = ui->lineEditExchange->text(); QString period = ui->lineEditPeriod->text(); if (symbol.length() != 0 && exchange.length() != 0 && period.length() != 0) { if (period == "tick") { TickForm* form = new TickForm(); form->setWindowFlags(Qt::Window); form->init(symbol, exchange); centerWindow(form); form->show(); } else { } } }