set ok label default value
This commit is contained in:
parent
c8ab358fd7
commit
fa60fd2bc6
@ -98,7 +98,11 @@ void DoricModalPlugin::alert(QString jsValueString, QString callbackId) {
|
||||
|
||||
window->setProperty("title", titleVal.toString());
|
||||
window->setProperty("msg", msgVal.toString());
|
||||
if (okBtn.isString()) {
|
||||
window->setProperty("okLabel", okBtn.toString());
|
||||
} else {
|
||||
window->setProperty("okLabel", "ok");
|
||||
}
|
||||
|
||||
QQuickWindow *parentWindow =
|
||||
getContext()->getRootNode()->getRootView()->window();
|
||||
|
Reference in New Issue
Block a user