| 411 | } |
| 412 | |
| 413 | bool Project::pinsPlacedMessage() |
| 414 | { |
| 415 | |
| 416 | if (m_isPinsPlaced == false) { |
| 417 | QMessageBox msgbx(QMessageBox::Information, |
| 418 | "", |
| 419 | QObject::tr("Board dimensions may have changed.\n" |
| 420 | "It is advisable to perform automatic placement of the pins\n" |
| 421 | "by selecting the necessary work items.\n\n" |
| 422 | "Continue saving?"), |
| 423 | QMessageBox::Yes | QMessageBox::No, nullptr); |
| 424 | { |
| 425 | auto label(msgbx.findChild<QLabel*>()); |
| 426 | label->setPixmap(QIcon::fromTheme("snap-nodes-cusp").pixmap(label->size())); |
| 427 | } |
| 428 | return msgbx.exec() == QMessageBox::No; |
| 429 | } |
| 430 | return false; |
| 431 | /* Размеры платы могли измениться. |
| 432 | * Выполните автоматическое размещение штифтов, выбрав необходимые рабочие элементы. |
| 433 | * Продолжить сохранение? |
| 434 | */ |
| 435 | } |
| 436 | |
| 437 | bool Project::isUntitled() { return m_isUntitled; } |
| 438 |
no test coverage detected