dde-dock/frame/item/traypluginitem.h
Robert 0427e19b72
chore: adapt license and copyright (#680)
Modify project to pass the REUSE check

Log: Modify project to pass the REUSE check
Task: https://pms.uniontech.com/task-view-185215.html
Change-Id: Ie954cf985f16c1a243bfc912aa7458c6e85ce9de
2022-09-06 11:36:55 +08:00

34 lines
830 B
C++

// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef TRAYPLUGINITEM_H
#define TRAYPLUGINITEM_H
#include "pluginsitem.h"
class TrayPluginItem : public PluginsItem
{
Q_OBJECT
public:
TrayPluginItem(PluginsItemInterface* const pluginInter, const QString &itemKey, const QString &pluginApi, QWidget *parent = nullptr);
inline ItemType itemType() const override {return ItemType::TrayPlugin;}
void setSuggestIconSize(QSize size);
void setRightSplitVisible(const bool visible);
int trayVisibleItemCount();
Q_SIGNALS:
void trayVisableCountChanged(const int &count) const;
private:
bool eventFilter(QObject *watched, QEvent *e) override;
private:
int m_trayVisableItemCount = 0;
};
#endif // TRAYPLUGINITEM_H