mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
VUtils: set default button as special button
This commit is contained in:
parent
2933e0f44c
commit
9f9cc553dd
@ -415,6 +415,14 @@ int VUtils::showMessage(QMessageBox::Icon p_icon,
|
||||
okBtn->style()->polish(okBtn);
|
||||
}
|
||||
}
|
||||
|
||||
QPushButton *defaultBtn = dynamic_cast<QPushButton *>(msgBox.button(p_defaultBtn));
|
||||
if (defaultBtn) {
|
||||
defaultBtn->setProperty("SpecialBtn", true);
|
||||
defaultBtn->style()->unpolish(defaultBtn);
|
||||
defaultBtn->style()->polish(defaultBtn);
|
||||
}
|
||||
|
||||
return msgBox.exec();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user