mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
remove old files
Change-Id: I1fe4b2d31a8d3cb4f039abfabe293f8018fafb03
This commit is contained in:
parent
197d10471c
commit
17ba0ae185
@ -10,14 +10,13 @@
|
|||||||
|
|
||||||
int AppItem::IconBaseSize;
|
int AppItem::IconBaseSize;
|
||||||
QPoint AppItem::MousePressPos;
|
QPoint AppItem::MousePressPos;
|
||||||
DBusClientManager *AppItem::ClientInter = nullptr;
|
|
||||||
|
|
||||||
AppItem::AppItem(const QDBusObjectPath &entry, QWidget *parent)
|
AppItem::AppItem(const QDBusObjectPath &entry, QWidget *parent)
|
||||||
: DockItem(App, parent),
|
: DockItem(App, parent),
|
||||||
m_itemEntry(new DBusDockEntry(entry.path(), this)),
|
m_itemEntry(new DBusDockEntry(entry.path(), this)),
|
||||||
m_draging(false)
|
m_draging(false)
|
||||||
{
|
{
|
||||||
initClientManager();
|
setAcceptDrops(true);
|
||||||
|
|
||||||
m_id = m_itemEntry->id();
|
m_id = m_itemEntry->id();
|
||||||
m_active = m_itemEntry->active();
|
m_active = m_itemEntry->active();
|
||||||
@ -184,6 +183,11 @@ void AppItem::resizeEvent(QResizeEvent *e)
|
|||||||
updateIcon();
|
updateIcon();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AppItem::dragEnterEvent(QDragEnterEvent *e)
|
||||||
|
{
|
||||||
|
qDebug() << e;
|
||||||
|
}
|
||||||
|
|
||||||
void AppItem::invokedMenuItem(const QString &itemId, const bool checked)
|
void AppItem::invokedMenuItem(const QString &itemId, const bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked);
|
||||||
@ -222,14 +226,6 @@ void AppItem::startDrag()
|
|||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppItem::initClientManager()
|
|
||||||
{
|
|
||||||
if (ClientInter)
|
|
||||||
return;
|
|
||||||
|
|
||||||
ClientInter = new DBusClientManager(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
void AppItem::updateTitle()
|
void AppItem::updateTitle()
|
||||||
{
|
{
|
||||||
m_titles = m_itemEntry->titles();
|
m_titles = m_itemEntry->titles();
|
||||||
|
@ -24,6 +24,7 @@ private:
|
|||||||
void mousePressEvent(QMouseEvent *e);
|
void mousePressEvent(QMouseEvent *e);
|
||||||
void mouseMoveEvent(QMouseEvent *e);
|
void mouseMoveEvent(QMouseEvent *e);
|
||||||
void resizeEvent(QResizeEvent *e);
|
void resizeEvent(QResizeEvent *e);
|
||||||
|
void dragEnterEvent(QDragEnterEvent *e);
|
||||||
|
|
||||||
void invokedMenuItem(const QString &itemId, const bool checked);
|
void invokedMenuItem(const QString &itemId, const bool checked);
|
||||||
const QString contextMenu() const;
|
const QString contextMenu() const;
|
||||||
@ -49,7 +50,6 @@ private:
|
|||||||
|
|
||||||
static int IconBaseSize;
|
static int IconBaseSize;
|
||||||
static QPoint MousePressPos;
|
static QPoint MousePressPos;
|
||||||
static DBusClientManager *ClientInter;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // APPITEM_H
|
#endif // APPITEM_H
|
||||||
|
@ -109,7 +109,6 @@ void MainPanel::dragLeaveEvent(QDragLeaveEvent *e)
|
|||||||
void MainPanel::dropEvent(QDropEvent *e)
|
void MainPanel::dropEvent(QDropEvent *e)
|
||||||
{
|
{
|
||||||
Q_UNUSED(e)
|
Q_UNUSED(e)
|
||||||
// qDebug() << e;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainPanel::initItemConnection(DockItem *item)
|
void MainPanel::initItemConnection(DockItem *item)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user