MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / DockDropIndicatorWindow

Method DockDropIndicatorWindow

pcsx2-qt/Debugger/Docking/DropIndicators.cpp:220–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220DockDropIndicatorWindow::DockDropIndicatorWindow(
221 KDDockWidgets::Core::ClassicDropIndicatorOverlay* classic_indicators)
222 : QWidget(parentForIndicatorWindow(classic_indicators), flagsForIndicatorWindow())
223 , m_classic_indicators(classic_indicators)
224 , m_indicators({
225 /* [IND_LEFT] = */ new DockDropIndicator(KDDockWidgets::DropLocation_Left, this),
226 /* [IND_TOP] = */ new DockDropIndicator(KDDockWidgets::DropLocation_Top, this),
227 /* [IND_RIGHT] = */ new DockDropIndicator(KDDockWidgets::DropLocation_Right, this),
228 /* [IND_BOTTOM] = */ new DockDropIndicator(KDDockWidgets::DropLocation_Bottom, this),
229 /* [IND_CENTER] = */ new DockDropIndicator(KDDockWidgets::DropLocation_Center, this),
230 /* [IND_OUTER_LEFT] = */ new DockDropIndicator(KDDockWidgets::DropLocation_OutterLeft, this),
231 /* [IND_OUTER_TOP] = */ new DockDropIndicator(KDDockWidgets::DropLocation_OutterTop, this),
232 /* [IND_OUTER_RIGHT] = */ new DockDropIndicator(KDDockWidgets::DropLocation_OutterRight, this),
233 /* [IND_OUTER_BOTTOM] = */ new DockDropIndicator(KDDockWidgets::DropLocation_OutterBottom, this),
234 })
235{
236 setWindowFlag(Qt::FramelessWindowHint, true);
237
238 if (KDDockWidgets::Config::self().flags() & KDDockWidgets::Config::Flag_KeepAboveIfNotUtilityWindow)
239 setWindowFlag(Qt::WindowStaysOnTopHint, true);
240
241 setAttribute(Qt::WA_TranslucentBackground);
242}
243
244void DockDropIndicatorWindow::setObjectName(const QString& name)
245{

Callers

nothing calls this directly

Calls 3

parentForIndicatorWindowFunction · 0.85
flagsForIndicatorWindowFunction · 0.85
flagsMethod · 0.45

Tested by

no test coverage detected