| 11 | #include <QPainter> |
| 12 | #include <QPainterPath> |
| 13 | #include <QPropertyAnimation> |
| 14 | #include <QScreen> |
| 15 | |
| 16 | ElaMenu::ElaMenu(QWidget* parent) |
| 17 | : QMenu(parent), d_ptr(new ElaMenuPrivate()) |
| 18 | { |
| 19 | Q_D(ElaMenu); |
| 20 | d->q_ptr = this; |
| 21 | setWindowFlags(Qt::Popup | Qt::FramelessWindowHint | Qt::NoDropShadowWindowHint); |
| 22 | setAttribute(Qt::WA_TranslucentBackground); |
| 23 | setObjectName("ElaMenu"); |
| 24 | setContentsMargins(eTheme->getShadowMargins()); |
| 25 | d->_menuStyle = new ElaMenuStyle(style()); |
| 26 | d->_menuStyle->setParent(this); |
| 27 | setStyle(d->_menuStyle); |
nothing calls this directly
no outgoing calls
no test coverage detected