mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 12:54:10 -07:00
Initialize symbolSize and ySpacing in PhasesToolbar
they will be set to the right value later, but avoid using an uninitialized value when rearrangeButtons() is run for the first time
This commit is contained in:
parent
3a5cdd6ba8
commit
83f57b096c
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ void PhaseButton::triggerDoubleClickAction()
|
|||
}
|
||||
|
||||
PhasesToolbar::PhasesToolbar(QGraphicsItem *parent)
|
||||
: QGraphicsItem(parent), width(100), height(100)
|
||||
: QGraphicsItem(parent), width(100), height(100), ySpacing(1), symbolSize(8)
|
||||
{
|
||||
QAction *aUntapAll = new QAction(this);
|
||||
connect(aUntapAll, SIGNAL(triggered()), this, SLOT(actUntapAll()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue