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

Method warning

ElaWidgetTools/ElaMessageBar.cpp:105–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 if (widget->property("ElaBaseClassName").toString() == "ElaWindow")
104 {
105 parent = widget;
106 }
107 }
108 if (!parent)
109 {
110 return;
111 }
112 }
113 ElaMessageBar* bar = new ElaMessageBar(policy, ElaMessageBarType::Information, title, text, displayMsec, parent);
114 Q_UNUSED(bar);
115}
116
117void ElaMessageBar::error(ElaMessageBarType::PositionPolicy policy, QString title, QString text, int displayMsec, QWidget* parent)
118{
119 if (!parent)
120 {
121 QList<QWidget*> widgetList = QApplication::topLevelWidgets();
122 for (auto widget: widgetList)
123 {
124 if (widget->property("ElaBaseClassName").toString() == "ElaWindow")
125 {
126 parent = widget;
127 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected