##// END OF EJS Templates
Fix label truncate issues with multiple axes...
Fix label truncate issues with multiple axes If there were multiple axes on single side of the chart, the axes wider/higher than average never got their preferred size, causing labels to truncate. Fixed by calculating the required squeeze ratio instead of just blindly using even fraction of available space. Task-number: QTRD-1897 Reviewed-by: Mika Salmela

File last commit:

r2274:2d2a1c8b0f36
r2411:6fca0e6f42a3
Show More
axis.pri
78 lines | 2.4 KiB | text/plain | TextLexer
#Subdirectiores are defined here, because qt creator doesn't handle nested include(foo.pri) chains very well.
INCLUDEPATH += $$PWD \
$$PWD/valueaxis \
$$PWD/barcategoryaxis \
$$PWD/categoryaxis \
$$PWD/logvalueaxis
DEPENDPATH += $$PWD \
$$PWD/valueaxis \
$$PWD/barcategoryaxis \
$$PWD/categoryaxis \
$$PWD/logvalueaxis
SOURCES += \
$$PWD/chartaxis.cpp \
$$PWD/qabstractaxis.cpp \
$$PWD/verticalaxis.cpp \
$$PWD/horizontalaxis.cpp \
$$PWD/valueaxis/chartvalueaxisx.cpp \
$$PWD/valueaxis/chartvalueaxisy.cpp \
$$PWD/valueaxis/qvalueaxis.cpp \
$$PWD/barcategoryaxis/chartbarcategoryaxisx.cpp \
$$PWD/barcategoryaxis/chartbarcategoryaxisy.cpp \
$$PWD/barcategoryaxis/qbarcategoryaxis.cpp \
$$PWD/categoryaxis/chartcategoryaxisx.cpp \
$$PWD/categoryaxis/chartcategoryaxisy.cpp \
$$PWD/categoryaxis/qcategoryaxis.cpp \
$$PWD/logvalueaxis/chartlogvalueaxisx.cpp \
$$PWD/logvalueaxis/chartlogvalueaxisy.cpp \
$$PWD/logvalueaxis/qlogvalueaxis.cpp
PRIVATE_HEADERS += \
$$PWD/chartaxis_p.h \
$$PWD/qabstractaxis_p.h \
$$PWD/verticalaxis_p.h \
$$PWD/horizontalaxis_p.h \
$$PWD/valueaxis/chartvalueaxisx_p.h \
$$PWD/valueaxis/chartvalueaxisy_p.h \
$$PWD/valueaxis/qvalueaxis_p.h \
$$PWD/barcategoryaxis/chartbarcategoryaxisx_p.h \
$$PWD/barcategoryaxis/chartbarcategoryaxisy_p.h \
$$PWD/barcategoryaxis/qbarcategoryaxis_p.h \
$$PWD/categoryaxis/chartcategoryaxisx_p.h \
$$PWD/categoryaxis/chartcategoryaxisy_p.h \
$$PWD/categoryaxis/qcategoryaxis_p.h \
$$PWD/logvalueaxis/chartlogvalueaxisx_p.h \
$$PWD/logvalueaxis/chartlogvalueaxisy_p.h \
$$PWD/logvalueaxis/qlogvalueaxis_p.h
PUBLIC_HEADERS += \
$$PWD/qabstractaxis.h \
$$PWD/valueaxis/qvalueaxis.h \
$$PWD/barcategoryaxis/qbarcategoryaxis.h \
$$PWD/categoryaxis/qcategoryaxis.h \
$$PWD/logvalueaxis/qlogvalueaxis.h \
!linux-arm*: {
INCLUDEPATH += \
$$PWD/datetimeaxis
DEPENDPATH += \
$$PWD/datetimeaxis
SOURCES += \
$$PWD/datetimeaxis/chartdatetimeaxisx.cpp \
$$PWD/datetimeaxis/chartdatetimeaxisy.cpp \
$$PWD/datetimeaxis/qdatetimeaxis.cpp
PRIVATE_HEADERS += \
$$PWD/datetimeaxis/chartdatetimeaxisx_p.h \
$$PWD/datetimeaxis/chartdatetimeaxisy_p.h \
$$PWD/datetimeaxis/qdatetimeaxis_p.h
PUBLIC_HEADERS += \
$$PWD/datetimeaxis/qdatetimeaxis.h
}