mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09: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);
|
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();
|
return msgBox.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user