| | |
| | | anchors->setLeft(parentPri->left()); |
| | | anchors->setRight(parentPri->right()); |
| | | |
| | | setZ(std::numeric_limits<qreal>::max()); |
| | | setZ(10); |
| | | } |
| | | |
| | | BorderItem::~BorderItem() = default; |
| | |
| | | } |
| | | |
| | | void QuickWindowAgentPrivate::init() { |
| | | borderItem = std::make_unique<BorderItem>(context.get(), hostWindow->contentItem()); |
| | | } |
| | | |
| | | QuickWindowAgent::QuickWindowAgent(QObject *parent) |
| | |
| | | return false; |
| | | } |
| | | d->hostWindow = window; |
| | | |
| | | if (bool needPaintBorder = false; |
| | | d->context->virtual_hook(AbstractWindowContext::NeedsDrawBordersHook, &needPaintBorder), |
| | | needPaintBorder) { |
| | | d->borderItem = std::make_unique<BorderItem>(d->context.get(), window->contentItem()); |
| | | } |
| | | return true; |
| | | } |
| | | |