mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-12 19:05:37 -05:00
limit label width, remove apply/saveSpeciesColors
This commit is contained in:
@@ -25,6 +25,7 @@ public:
|
||||
static constexpr int IconVerticalOffset = -2;
|
||||
static constexpr int Spacing = 6;
|
||||
static constexpr int Padding = 10;
|
||||
static constexpr int MaxLabelWidth = 230;
|
||||
explicit SpeciesChartView(QWidget *parent = nullptr);
|
||||
|
||||
void setSpecies(const QStringList &species);
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class Project;
|
||||
|
||||
#if __has_include(<QtCharts>)
|
||||
#include <QtCharts>
|
||||
|
||||
class Project;
|
||||
|
||||
namespace Ui {
|
||||
class WildMonChart;
|
||||
}
|
||||
@@ -49,8 +49,6 @@ private:
|
||||
typedef QMap<QString, Summary> GroupedData;
|
||||
|
||||
QMap<QString, GroupedData> speciesToGroupedData;
|
||||
QMap<QString, QColor> speciesToColor;
|
||||
|
||||
|
||||
QStringList getSpeciesNamesAlphabetical() const;
|
||||
double getSpeciesFrequency(const QString&, const QString&) const;
|
||||
@@ -66,8 +64,6 @@ private:
|
||||
void refreshSpeciesDistributionChart();
|
||||
void refreshLevelDistributionChart();
|
||||
|
||||
void saveSpeciesColors(const QList<QBarSet*> &);
|
||||
void applySpeciesColors(const QList<QBarSet*> &);
|
||||
QChart::ChartTheme currentTheme() const;
|
||||
void updateTheme();
|
||||
void limitChartAnimation();
|
||||
@@ -77,8 +73,6 @@ private:
|
||||
|
||||
#else
|
||||
|
||||
class Project;
|
||||
|
||||
class WildMonChart : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user