Showing the changes to libraries/ui/src/MessageDialog.cpp (1 of 7 files). Show all
Unified · Split
| @@ -78,27 +78,6 @@ void MessageDialog::click(StandardButton button) { · 77 unmodified lines | |||
| 78 | // FIXME try to do it more like the standard dialog | 78 | // FIXME try to do it more like the standard dialog |
| 79 | click(StandardButton(button), ButtonRole::NoRole); | 79 | click(StandardButton(button), ButtonRole::NoRole); |
| 80 | } | 80 | } |
| 81 | QMessageBox::ButtonRole br; | ||
| 82 | |||
| 83 | QUrl MessageDialog::standardIconSource() { | ||
| 84 | switch (icon()) { | ||
| 85 | case Information: | ||
| 86 | return QUrl("images/information.png"); | ||
| 87 | break; | ||
| 88 | case Warning: | ||
| 89 | return QUrl("images/warning.png"); | ||
| 90 | break; | ||
| 91 | case Critical: | ||
| 92 | return QUrl("images/critical.png"); | ||
| 93 | break; | ||
| 94 | case Question: | ||
| 95 | return QUrl("images/question.png"); | ||
| 96 | break; | ||
| 97 | default: | ||
| 98 | return QUrl(); | ||
| 99 | break; | ||
| 100 | } | ||
| 101 | } | ||
| 102 | 81 | ||
| 103 | MessageDialog::StandardButtons MessageDialog::standardButtons() const { | 82 | MessageDialog::StandardButtons MessageDialog::standardButtons() const { |
| 104 | return _buttons; | 83 | return _buttons; |