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:
Fabio Bas 2014-08-09 12:27:44 +02:00
parent 3a5cdd6ba8
commit 83f57b096c

View file

@ -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()));