mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix painter warning
Change-Id: I5946566071d95f3374f4305d0907347b04959506
This commit is contained in:
parent
1178702567
commit
53cea04d4c
@ -165,6 +165,8 @@ void MainPanel::adjustItemSize()
|
||||
const QList<DockItem *> itemList = m_itemController->itemList();
|
||||
for (auto item : itemList)
|
||||
{
|
||||
item->setVisible(true);
|
||||
|
||||
switch (item->itemType())
|
||||
{
|
||||
case DockItem::App:
|
||||
@ -273,6 +275,9 @@ void MainPanel::adjustItemSize()
|
||||
|
||||
void MainPanel::itemInserted(const int index, DockItem *item)
|
||||
{
|
||||
// hide new item, display it after size adjust finished
|
||||
item->hide();
|
||||
|
||||
initItemConnection(item);
|
||||
m_itemLayout->insertWidget(index, item);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user