mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
feat: remove spacing for launcher item
Change-Id: I040a0a5b1c8163cdfbea663cb1e1447f54b1f557
This commit is contained in:
parent
fd3d0a14aa
commit
f17cce91d6
Notes:
gerrit
2018-09-06 16:18:37 +08:00
Verified+1: <jenkins@deepin.com> Code-Review+2: 张丁元 <lxz@ilxz.me> Submitted-by: 张丁元 <lxz@ilxz.me> Submitted-at: Thu, 06 Sep 2018 16:18:36 +0800 Reviewed-on: https://cr.deepin.io/38178 Project: dde/dde-dock Branch: refs/heads/master
@ -97,12 +97,12 @@ void MainPanel::updateDockPosition(const Position dockPosition)
|
||||
case Position::Top:
|
||||
case Position::Bottom:
|
||||
m_itemLayout->setDirection(QBoxLayout::LeftToRight);
|
||||
m_itemLayout->setContentsMargins(1, 0, 1, 0);
|
||||
m_itemLayout->setContentsMargins(0, 0, 1, 0);
|
||||
break;
|
||||
case Position::Left:
|
||||
case Position::Right:
|
||||
m_itemLayout->setDirection(QBoxLayout::TopToBottom);
|
||||
m_itemLayout->setContentsMargins(0, 1, 0, 1);
|
||||
m_itemLayout->setContentsMargins(0, 0, 0, 1);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user