| 80 | for (auto widget: widgetList) |
| 81 | { |
| 82 | if (widget->property("ElaBaseClassName").toString() == "ElaWindow") |
| 83 | { |
| 84 | parent = widget; |
| 85 | } |
| 86 | } |
| 87 | if (!parent) |
| 88 | { |
| 89 | return; |
| 90 | } |
| 91 | } |
| 92 | ElaMessageBar* bar = new ElaMessageBar(policy, ElaMessageBarType::Warning, title, text, displayMsec, parent); |
| 93 | Q_UNUSED(bar); |
| 94 | } |
| 95 | |
| 96 | void ElaMessageBar::information(ElaMessageBarType::PositionPolicy policy, QString title, QString text, int displayMsec, QWidget* parent) |
| 97 | { |
| 98 | if (!parent) |
| 99 | { |
| 100 | QList<QWidget*> widgetList = QApplication::topLevelWidgets(); |
| 101 | for (auto widget: widgetList) |
| 102 | { |
| 103 | if (widget->property("ElaBaseClassName").toString() == "ElaWindow") |
| 104 | { |
| 105 | parent = widget; |
| 106 | } |
nothing calls this directly
no outgoing calls
no test coverage detected