Update StatsPanel : remove warning for hbox multiple parent
This commit is contained in:
parent
d89c7d90f1
commit
4ea7efd178
|
@ -185,6 +185,9 @@ StatsPanel::StatsPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent),
|
||||||
_hbox2->addLayout(_vbox2);
|
_hbox2->addLayout(_vbox2);
|
||||||
vbox->addLayout(_hbox2);
|
vbox->addLayout(_hbox2);
|
||||||
|
|
||||||
|
_hbox2->addLayout(_vbox3);
|
||||||
|
_hbox2->addWidget(_pie);
|
||||||
|
|
||||||
OnRangeChange(0);
|
OnRangeChange(0);
|
||||||
|
|
||||||
layout();
|
layout();
|
||||||
|
@ -232,8 +235,6 @@ void StatsPanel::UpdateStats(int monthFrom, int yearFrom, int monthTo, int yearT
|
||||||
if (_plot)
|
if (_plot)
|
||||||
{
|
{
|
||||||
_vbox2->removeWidget(_plot);
|
_vbox2->removeWidget(_plot);
|
||||||
_hbox2->removeItem(_vbox3);
|
|
||||||
_hbox2->removeWidget(_pie);
|
|
||||||
delete _plot;
|
delete _plot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -404,9 +405,6 @@ void StatsPanel::UpdateStats(int monthFrom, int yearFrom, int monthTo, int yearT
|
||||||
|
|
||||||
_statsGrid->resizeColumnsToContents();
|
_statsGrid->resizeColumnsToContents();
|
||||||
|
|
||||||
_hbox2->addLayout(_vbox3);
|
|
||||||
_hbox2->addWidget(_pie);
|
|
||||||
|
|
||||||
layout();
|
layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue