mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
disable container item as fasion mode
Change-Id: If7ee10779a047a429e4c80adc4f543d1d7a1ccd7
This commit is contained in:
parent
5c7519564a
commit
07747272ac
Notes:
Deepin Code Review
2016-08-08 09:18:32 +00:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Mon, 08 Aug 2016 09:18:32 +0000 Reviewed-on: https://cr.deepin.io/14981 Project: dde/dde-dock Branch: refs/heads/master
@ -32,6 +32,9 @@ void ContainerItem::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
DockItem::paintEvent(e);
|
||||
|
||||
if (DockDisplayMode == Dock::Fashion)
|
||||
return;
|
||||
|
||||
QPainter painter(this);
|
||||
painter.drawPixmap(rect().center() - m_icon.rect().center(), m_icon);
|
||||
}
|
||||
|
@ -274,6 +274,9 @@ void MainPanel::adjustItemSize()
|
||||
const QList<DockItem *> itemList = m_itemController->itemList();
|
||||
for (auto item : itemList)
|
||||
{
|
||||
if (item->itemType() == DockItem::Container)
|
||||
continue;
|
||||
|
||||
QMetaObject::invokeMethod(item, "setVisible", Qt::QueuedConnection, Q_ARG(bool, true));
|
||||
|
||||
switch (item->itemType())
|
||||
|
Loading…
x
Reference in New Issue
Block a user