ZoneView now floats above cardfield
This commit is contained in:
parent
dff26376fd
commit
ebca375755
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,7 @@ void ZoneViewLayout::reorganize()
|
||||||
qreal w = viewSize.right() - viewSize.left();
|
qreal w = viewSize.right() - viewSize.left();
|
||||||
qreal h = viewSize.bottom() - viewSize.top();
|
qreal h = viewSize.bottom() - viewSize.top();
|
||||||
views.at(i)->setPos(totalWidth, y);
|
views.at(i)->setPos(totalWidth, y);
|
||||||
totalWidth += w;
|
totalWidth += w;
|
||||||
if (h > totalHeight)
|
if (h > totalHeight)
|
||||||
totalHeight = h;
|
totalHeight = h;
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,7 @@ void ZoneViewLayout::toggleZoneView(Player *player, const QString &zoneName, int
|
||||||
connect(item, SIGNAL(closePressed(ZoneViewWidget *)), this, SLOT(removeItem(ZoneViewWidget *)));
|
connect(item, SIGNAL(closePressed(ZoneViewWidget *)), this, SLOT(removeItem(ZoneViewWidget *)));
|
||||||
connect(item, SIGNAL(sizeChanged()), this, SLOT(reorganize()));
|
connect(item, SIGNAL(sizeChanged()), this, SLOT(reorganize()));
|
||||||
reorganize();
|
reorganize();
|
||||||
|
setZValue(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ZoneViewLayout::removeItem(ZoneViewWidget *item)
|
void ZoneViewLayout::removeItem(ZoneViewWidget *item)
|
||||||
|
|
Loading…
Reference in a new issue