mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42:15 -07:00
move variables into if block
This commit is contained in:
parent
d4893f3fdf
commit
280e6138e9
1 changed files with 3 additions and 4 deletions
|
|
@ -40,11 +40,10 @@ ZoneViewWidget::ZoneViewWidget(Player *_player,
|
|||
setFlag(ItemIgnoresTransformations);
|
||||
|
||||
QGraphicsLinearLayout *vbox = new QGraphicsLinearLayout(Qt::Vertical);
|
||||
QGraphicsLinearLayout *hPilebox = 0;
|
||||
|
||||
// If the number is < 0, then it means that we can give the option to make the area sorted
|
||||
if (numberCards < 0) {
|
||||
hPilebox = new QGraphicsLinearLayout(Qt::Horizontal);
|
||||
QGraphicsLinearLayout *hPilebox = new QGraphicsLinearLayout(Qt::Horizontal);
|
||||
QGraphicsLinearLayout *hFilterbox = new QGraphicsLinearLayout(Qt::Horizontal);
|
||||
|
||||
QGraphicsProxyWidget *sortByNameProxy = new QGraphicsProxyWidget;
|
||||
|
|
@ -74,9 +73,9 @@ ZoneViewWidget::ZoneViewWidget(Player *_player,
|
|||
shuffleProxy->setWidget(&shuffleCheckBox);
|
||||
hPilebox->addItem(shuffleProxy);
|
||||
}
|
||||
}
|
||||
|
||||
vbox->addItem(hPilebox);
|
||||
vbox->addItem(hPilebox);
|
||||
}
|
||||
|
||||
extraHeight = vbox->sizeHint(Qt::PreferredSize).height();
|
||||
resize(150, 150);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue