remove old files

Change-Id: I1fe4b2d31a8d3cb4f039abfabe293f8018fafb03
This commit is contained in:
石博文 2016-06-23 14:45:57 +08:00 committed by Hualet Wang
parent 197d10471c
commit 17ba0ae185
3 changed files with 7 additions and 12 deletions

View File

@ -10,14 +10,13 @@
int AppItem::IconBaseSize;
QPoint AppItem::MousePressPos;
DBusClientManager *AppItem::ClientInter = nullptr;
AppItem::AppItem(const QDBusObjectPath &entry, QWidget *parent)
: DockItem(App, parent),
m_itemEntry(new DBusDockEntry(entry.path(), this)),
m_draging(false)
{
initClientManager();
setAcceptDrops(true);
m_id = m_itemEntry->id();
m_active = m_itemEntry->active();
@ -184,6 +183,11 @@ void AppItem::resizeEvent(QResizeEvent *e)
updateIcon();
}
void AppItem::dragEnterEvent(QDragEnterEvent *e)
{
qDebug() << e;
}
void AppItem::invokedMenuItem(const QString &itemId, const bool checked)
{
Q_UNUSED(checked);
@ -222,14 +226,6 @@ void AppItem::startDrag()
update();
}
void AppItem::initClientManager()
{
if (ClientInter)
return;
ClientInter = new DBusClientManager(this);
}
void AppItem::updateTitle()
{
m_titles = m_itemEntry->titles();

View File

@ -24,6 +24,7 @@ private:
void mousePressEvent(QMouseEvent *e);
void mouseMoveEvent(QMouseEvent *e);
void resizeEvent(QResizeEvent *e);
void dragEnterEvent(QDragEnterEvent *e);
void invokedMenuItem(const QString &itemId, const bool checked);
const QString contextMenu() const;
@ -49,7 +50,6 @@ private:
static int IconBaseSize;
static QPoint MousePressPos;
static DBusClientManager *ClientInter;
};
#endif // APPITEM_H

View File

@ -109,7 +109,6 @@ void MainPanel::dragLeaveEvent(QDragLeaveEvent *e)
void MainPanel::dropEvent(QDropEvent *e)
{
Q_UNUSED(e)
// qDebug() << e;
}
void MainPanel::initItemConnection(DockItem *item)