mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 13:14:15 +02:00
confirmation body can be rendered as HTML
This commit is contained in:
@@ -16,11 +16,9 @@ class ConfirmationDialog(QMessageBox):
|
|||||||
self.addButton(locale_keys['popup.button.no'] if not deny_label else deny_label.capitalize(), QMessageBox.NoRole)
|
self.addButton(locale_keys['popup.button.no'] if not deny_label else deny_label.capitalize(), QMessageBox.NoRole)
|
||||||
|
|
||||||
if body:
|
if body:
|
||||||
if components:
|
self.layout().addWidget(QLabel(body), 0, 1)
|
||||||
self.layout().addWidget(QLabel(body), 0, 1)
|
if not components:
|
||||||
else:
|
|
||||||
self.setIcon(QMessageBox.Question)
|
self.setIcon(QMessageBox.Question)
|
||||||
self.setText(body)
|
|
||||||
|
|
||||||
if components:
|
if components:
|
||||||
comps_container = QWidget(parent=self)
|
comps_container = QWidget(parent=self)
|
||||||
|
|||||||
Reference in New Issue
Block a user