Add primitive support of low resolutions
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
|
||||
#include "StatsPanel.hpp"
|
||||
|
||||
StatsPanel::StatsPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent), _plot(0)
|
||||
StatsPanel::StatsPanel(KissCount* kiss, wxUI *parent, bool lowResolution) :
|
||||
KissPanel(kiss, parent, lowResolution), _plot(0)
|
||||
{
|
||||
QHBoxLayout *hbox = new QHBoxLayout();
|
||||
QVBoxLayout *vbox = new QVBoxLayout();
|
||||
@@ -41,6 +42,9 @@ StatsPanel::StatsPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent),
|
||||
int nbCategories;
|
||||
QListWidgetItem* item;
|
||||
|
||||
_icons[KissPanel::LOW_RES_ICON] = STATS_LOW_ICON;
|
||||
_icons[KissPanel::HIGH_RES_ICON] = STATS_ICON;
|
||||
|
||||
setLayout(vbox);
|
||||
|
||||
_monthFrom = new QComboBox(parent);
|
||||
@@ -195,19 +199,7 @@ StatsPanel::StatsPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent),
|
||||
|
||||
KissPanel* StatsPanel::CreatePanel()
|
||||
{
|
||||
return new StatsPanel(_kiss, _wxUI);
|
||||
}
|
||||
|
||||
QPushButton* StatsPanel::GetButton()
|
||||
{
|
||||
if (!_KissButton)
|
||||
{
|
||||
_KissButton = new QPushButton(QIcon(STATS_ICON), "", this);
|
||||
_KissButton->setFixedSize(128, 128);
|
||||
_KissButton->setIconSize(QSize(128, 128));
|
||||
}
|
||||
|
||||
return _KissButton;
|
||||
return new StatsPanel(_kiss, _wxUI, _lowResolution);
|
||||
}
|
||||
|
||||
QString StatsPanel::GetToolTip()
|
||||
|
Reference in New Issue
Block a user