| 70 | } |
| 71 | |
| 72 | int TabBarPrivate::showConfirmDialog(const QString &filePath) |
| 73 | { |
| 74 | DDialog dialog(q); |
| 75 | dialog.setWindowTitle(tr("Save Changes")); |
| 76 | dialog.setIcon(QIcon::fromTheme("dialog-warning")); |
| 77 | dialog.setMessage(tr("The file %1 has unsaved changes, will save?").arg(QFileInfo(filePath).fileName())); |
| 78 | dialog.addButton(tr("Save", "button"), true, DDialog::ButtonRecommend); |
| 79 | dialog.addButton(tr("Do Not Save", "button")); |
| 80 | dialog.addButton(tr("Cancel", "button")); |
| 81 | |
| 82 | return dialog.exec(); |
| 83 | } |
| 84 | |
| 85 | void TabBarPrivate::initConnection() |
| 86 | { |
no test coverage detected