From ebca3757558adb70c7e49a88c479b15df18ca5bd Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 2 Oct 2009 12:27:02 +0200 Subject: [PATCH] ZoneView now floats above cardfield --- cockatrice/src/zoneviewlayout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/zoneviewlayout.cpp b/cockatrice/src/zoneviewlayout.cpp index a9f322a1..5a5987c3 100644 --- a/cockatrice/src/zoneviewlayout.cpp +++ b/cockatrice/src/zoneviewlayout.cpp @@ -26,7 +26,7 @@ void ZoneViewLayout::reorganize() qreal w = viewSize.right() - viewSize.left(); qreal h = viewSize.bottom() - viewSize.top(); views.at(i)->setPos(totalWidth, y); - totalWidth += w; + totalWidth += w; if (h > totalHeight) 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(sizeChanged()), this, SLOT(reorganize())); reorganize(); + setZValue(2); } void ZoneViewLayout::removeItem(ZoneViewWidget *item)