| 1462 | } |
| 1463 | |
| 1464 | void ControlPanelDialog::chooseBackgroundColor() { |
| 1465 | QColor chosen = QColorDialog::getColor(selectedBgColor, this, tr("Select Background Color")); |
| 1466 | if (chosen.isValid()) { |
| 1467 | selectedBgColor = chosen; |
| 1468 | bgColorButton->setStyleSheet(QString("background-color: %1").arg(selectedBgColor.name())); |
| 1469 | } |
| 1470 | } |
| 1471 | |
| 1472 | void ControlPanelDialog::chooseGridColor() { |
| 1473 | QColor chosen = QColorDialog::getColor(selectedGridColor, this, tr("Select Grid/Line Color")); |