mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
20 lines
386 B
C++
20 lines
386 B
C++
#include "appitem.h"
|
|
|
|
#include <QPainter>
|
|
|
|
AppItem::AppItem(const QDBusObjectPath &entry, QWidget *parent)
|
|
: DockItem(parent),
|
|
m_itemEntry(new DBusDockEntry(entry.path(), this))
|
|
{
|
|
|
|
}
|
|
|
|
void AppItem::paintEvent(QPaintEvent *e)
|
|
{
|
|
DockItem::paintEvent(e);
|
|
|
|
QPainter painter(this);
|
|
painter.fillRect(rect(), Qt::cyan);
|
|
painter.drawText(rect(), m_itemEntry->id());
|
|
}
|