ChartItem has been fixed

This commit is contained in:
Arin Alexander 2019-11-26 23:40:36 +03:00
parent 7da6b1318a
commit daef743d10
3 changed files with 7 additions and 2 deletions

View File

@ -127,7 +127,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MAJOR = 1
LIMEREPORT_VERSION_MINOR = 5 LIMEREPORT_VERSION_MINOR = 5
LIMEREPORT_VERSION_RELEASE = 21 LIMEREPORT_VERSION_RELEASE = 22
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"

View File

@ -249,6 +249,11 @@ QWidget *ChartItem::defaultEditor()
return editor; return editor;
} }
bool ChartItem::isNeedUpdateSize(RenderPass pass) const
{
return pass == FirstPass;
}
QList<QString> ChartItem::labels() const QList<QString> ChartItem::labels() const
{ {
return m_labels; return m_labels;

View File

@ -196,7 +196,7 @@ protected:
void updateItemSize(DataSourceManager *dataManager, RenderPass, int); void updateItemSize(DataSourceManager *dataManager, RenderPass, int);
void fillLabels(IDataSource* dataSource); void fillLabels(IDataSource* dataSource);
QWidget* defaultEditor(); QWidget* defaultEditor();
bool isNeedUpdateSize(RenderPass pass) const;
private: private:
QList<SeriesItem*> m_series; QList<SeriesItem*> m_series;
// QList< QPointer<SeriesItem> > m_series; // QList< QPointer<SeriesItem> > m_series;