MCPcopy Create free account
hub / github.com/cpeditor/cpeditor / updateCompileAndRunButtons

Method updateCompileAndRunButtons

src/mainwindow.cpp:1383–1406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383void MainWindow::updateCompileAndRunButtons() const
1384{
1385 if (language == "Python")
1386 {
1387 ui->runOnly->show();
1388 ui->compile->hide();
1389 ui->run->hide();
1390 }
1391 else
1392 {
1393 if (SettingsHelper::isShowCompileAndRunOnly())
1394 {
1395 ui->run->show();
1396 ui->runOnly->hide();
1397 ui->compile->hide();
1398 }
1399 else
1400 {
1401 ui->run->show();
1402 ui->runOnly->show();
1403 ui->compile->show();
1404 }
1405 }
1406}
1407
1408void MainWindow::hideEvent(QHideEvent *event)
1409{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected