MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / closeEvent

Method closeEvent

source/ui/widget/QTextDialog.h:80–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected