| 78 | if (save) return textEdit->toPlainText(); |
| 79 | return text; |
| 80 | } |
| 81 | void closeEvent(QCloseEvent*) |
| 82 | { |
| 83 | if (editable && !save && text != textEdit->toPlainText() && MessageBoxW(nullptr, lang_trans("是否保存?").toStdWString().c_str(), L"TextEdit", MB_YESNO) == IDYES) save = true; |
| 84 | } |
| 85 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected