MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / success

Method success

ElaWidgetTools/ElaMessageBar.cpp:82–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
96void 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 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected