Demo entry 6637039

cpp

   

Submitted by abf on Aug 30, 2017 at 09:02
Language: C++. Code size: 438 Bytes.

void MainWindow::on_runButton_clicked()
{
    ui->runButton->setDisabled(true);
    ui->connectButton->setDisabled(true);
    ui->freezeButton->setDisabled(false);

    this->changeFlag();
}

void MainWindow::on_freezeButton_clicked()
{
    freezFlag = !freezFlag;
    if(freezFlag == false)
    {
        ui->freezeButton->setText("unfreeze");
    }
    else
    {
        ui->freezeButton->setText("freeze");
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).