fix painter warning

Change-Id: I5946566071d95f3374f4305d0907347b04959506
This commit is contained in:
石博文 2016-06-24 10:12:11 +08:00 committed by Hualet Wang
parent 1178702567
commit 53cea04d4c

View File

@ -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);