##// END OF EJS Templates
Fix vanishing labels for first and last ticks....
Fix vanishing labels for first and last ticks. Extra space must be reserved by layout for the axes that have wide labels for first or last tick. Changed the logic how axis sizeHint is interpreted to make the previously irrelevant height or width (depending on orientation) of the sizeHint to indicate how far the widest label extends past the first/last tick, and adjust the grid size accordingly in layout. Reviewed-by: Mika Salmela

File last commit:

r2296:6bd1dc9d15e0
r2443:5b27b7b1d72a RC2_1.2.1
Show More
declarative.pro
52 lines | 1.4 KiB | text/idl | PrologLexer
!include( ../plugins.pri ) {
error( "Couldn't find the plugins.pri file!" )
}
TARGET = qtcommercialchartqml
QT += declarative
DESTDIR = $$CHART_BUILD_QML_PLUGIN_DIR
INCLUDEPATH += $$CHART_BUILD_PRIVATE_HEADER_DIR
CONFIG(debug, debug|release) {
mac: TARGET = $$join(TARGET,,,_debug)
win32: TARGET = $$join(TARGET,,,d)
}
SOURCES += \
plugin.cpp \
declarativechart.cpp \
declarativexypoint.cpp \
declarativexyseries.cpp \
declarativelineseries.cpp \
declarativesplineseries.cpp \
declarativeareaseries.cpp \
declarativescatterseries.cpp \
declarativepieseries.cpp \
declarativebarseries.cpp \
declarativecategoryaxis.cpp \
declarativemargins.cpp \
declarativeaxes.cpp
HEADERS += \
declarativechart.h \
declarativexypoint.h \
declarativexyseries.h \
declarativelineseries.h \
declarativesplineseries.h \
declarativeareaseries.h \
declarativescatterseries.h \
declarativepieseries.h \
declarativebarseries.h \
declarativecategoryaxis.h \
declarativemargins.h \
declarativeaxes.h
TARGETPATH = QtCommercial/Chart
target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
qmldir.files += $$PWD/qmldir
qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
INSTALLS += target qmldir
FILE = $$PWD/qmldir
win32:{FILE = $$replace(FILE, "/","\\")}
QMAKE_POST_LINK += $$QMAKE_COPY $$FILE $$CHART_BUILD_QML_PLUGIN_DIR