// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later #include "attentioncontainer.h" AttentionContainer::AttentionContainer(TrayPlugin *trayPlugin, QWidget *parent) : AbstractContainer(trayPlugin, parent) { } FashionTrayWidgetWrapper *AttentionContainer::takeAttentionWrapper() { if (isEmpty()) { return nullptr; } return takeWrapper(wrapperList().first()); } bool AttentionContainer::acceptWrapper(FashionTrayWidgetWrapper *wrapper) { Q_UNUSED(wrapper); return true; } void AttentionContainer::refreshVisible() { // AbstractContainer::refreshVisible(); setContentsMargins(0, 0, 0 ,0); setVisible(!isEmpty()); } void AttentionContainer::addWrapper(FashionTrayWidgetWrapper *wrapper) { if (!isEmpty()) { qDebug() << "Reject! Already contains a attention wrapper!"; return; } AbstractContainer::addWrapper(wrapper); }