make it compatible with Qt5.3.2

This commit is contained in:
Hualet Wang 2015-08-24 10:45:59 +08:00
parent 24a0ffd44c
commit dc950f9a36
4 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
TEMPLATE = subdirs
SUBDIRS = dde-dock \
dde-dock-systray-plugin \
dde-dock-trash-plugin
dde-dock-trash-plugin

View File

@ -34,9 +34,7 @@ void DockModeData::setHideMode(Dock::HideMode value)
{
m_dds->SetHideMode(value);
m_dhsm->UpdateState();
QTimer::singleShot(100, m_dhsm, [=]{
m_dhsm->UpdateState();
});
QTimer::singleShot(100, m_dhsm, SLOT(UpdateState()));
}
int DockModeData::getDockHeight()

View File

@ -13,7 +13,7 @@ LauncherItem::LauncherItem(QWidget *parent) : AbstractDockItem(parent)
m_launcherProcess = new QProcess();
//TODO icon not show on init
QTimer::singleShot(20, this, &LauncherItem::updateIcon);
QTimer::singleShot(20, this, SLOT(updateIcon()));
}
void LauncherItem::enterEvent(QEvent *)

View File

@ -30,10 +30,10 @@ protected:
private slots:
void slotMousePress(QMouseEvent *event);
void slotMouseRelease(QMouseEvent *event);
void updateIcon();
private:
void changeDockMode(Dock::DockMode newMode, Dock::DockMode oldMode);
void updateIcon();
void reanchorIcon();
private: