Esempio n. 1
0
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();
    }
}
Esempio n. 2
0
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 {
        }
    }
}