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

Method dragEnterEvent

ElaWidgetTools/ElaTabWidget.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64 else
65 {
66 Q_EMIT tabCloseRequested(getIndex(index));
67 }
68 });
69 bar->setContextMenuPolicy(Qt::CustomContextMenu);
70 connect(bar, &QWidget::customContextMenuRequested, this, [this, bar, getIndex](const QPoint& position) {
71 const int index = bar->tabAt(position);
72 if (index >= 0)
73 {
74 QHoverEvent leave(QEvent::HoverLeave, QPointF(), QPointF());
75 QApplication::sendEvent(bar, &leave);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected