mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-22 18:32:17 -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);
|
setFlag(ItemIgnoresTransformations);
|
||||||
|
|
||||||
QGraphicsLinearLayout *vbox = new QGraphicsLinearLayout(Qt::Vertical);
|
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 the number is < 0, then it means that we can give the option to make the area sorted
|
||||||
if (numberCards < 0) {
|
if (numberCards < 0) {
|
||||||
hPilebox = new QGraphicsLinearLayout(Qt::Horizontal);
|
QGraphicsLinearLayout *hPilebox = new QGraphicsLinearLayout(Qt::Horizontal);
|
||||||
QGraphicsLinearLayout *hFilterbox = new QGraphicsLinearLayout(Qt::Horizontal);
|
QGraphicsLinearLayout *hFilterbox = new QGraphicsLinearLayout(Qt::Horizontal);
|
||||||
|
|
||||||
QGraphicsProxyWidget *sortByNameProxy = new QGraphicsProxyWidget;
|
QGraphicsProxyWidget *sortByNameProxy = new QGraphicsProxyWidget;
|
||||||
|
|
@ -74,9 +73,9 @@ ZoneViewWidget::ZoneViewWidget(Player *_player,
|
||||||
shuffleProxy->setWidget(&shuffleCheckBox);
|
shuffleProxy->setWidget(&shuffleCheckBox);
|
||||||
hPilebox->addItem(shuffleProxy);
|
hPilebox->addItem(shuffleProxy);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
vbox->addItem(hPilebox);
|
vbox->addItem(hPilebox);
|
||||||
|
}
|
||||||
|
|
||||||
extraHeight = vbox->sizeHint(Qt::PreferredSize).height();
|
extraHeight = vbox->sizeHint(Qt::PreferredSize).height();
|
||||||
resize(150, 150);
|
resize(150, 150);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue