mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
make it compatible with Qt5.3.2
This commit is contained in:
parent
24a0ffd44c
commit
dc950f9a36
@ -1,4 +1,4 @@
|
||||
TEMPLATE = subdirs
|
||||
SUBDIRS = dde-dock \
|
||||
dde-dock-systray-plugin \
|
||||
dde-dock-trash-plugin
|
||||
dde-dock-trash-plugin
|
||||
|
@ -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()
|
||||
|
@ -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 *)
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user