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

Method information

ElaWidgetTools/ElaMessageBar.cpp:126–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 if (widget->property("ElaBaseClassName").toString() == "ElaWindow")
125 {
126 parent = widget;
127 }
128 }
129 if (!parent)
130 {
131 return;
132 }
133 }
134 ElaMessageBar* bar = new ElaMessageBar(policy, ElaMessageBarType::Error, title, text, displayMsec, parent);
135 Q_UNUSED(bar);
136}
137#include <QDebug>
138void ElaMessageBar::paintEvent(QPaintEvent* event)
139{
140 Q_D(ElaMessageBar);
141 int fontPixelSize = eApp->getFontPixelSize();
142 QPainter painter(this);
143 painter.setOpacity(d->_pOpacity);
144 painter.setRenderHints(QPainter::SmoothPixmapTransform | QPainter::Antialiasing | QPainter::TextAntialiasing);
145 // 高性能阴影
146 eTheme->drawEffectShadow(&painter, rect(), d->_shadowBorderWidth, d->_borderRadius);
147
148 // 背景和图标绘制

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected