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

Method ElaMenu

ElaWidgetTools/ElaMenu.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <QPainter>
12#include <QPainterPath>
13#include <QPropertyAnimation>
14#include <QScreen>
15
16ElaMenu::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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected