| 218 | } |
| 219 | |
| 220 | DockDropIndicatorWindow::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 | |
| 244 | void DockDropIndicatorWindow::setObjectName(const QString& name) |
| 245 | { |
nothing calls this directly
no test coverage detected