0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-07-29 15:03:44 +03:00

Finish 1.7.18

This commit is contained in:
Arin Alex 2025-07-27 19:00:00 +03:00
commit c1a96b32c9
5 changed files with 22 additions and 6 deletions

View File

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakePythonSetting">
<option name="pythonIntegrationState" value="YES" />
</component>
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
</project>

View File

@ -2,6 +2,5 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/3rdparty/qtxlsx" vcs="Git" />
</component>
</project>

View File

@ -221,11 +221,19 @@ system("git --version") {
}
VERSION_TEMPLATE = $$PWD/version.h.in
VERSION_OUTPUT = $$OUT_PWD/version.h
defineReplace(generateHeader){
VERSION_TEMPLATE = $$1
OUTPUT_FILE = $$2
LINES = $$cat($$VERSION_TEMPLATE, lines)
LINES = $$replace(LINES, @GIT_VERSION@, $$LR_VERSION)
system(echo '// Auto generated version header' > $$OUTPUT_FILE)
for (a, LINES): system(echo '$${a}' >> $$OUTPUT_FILE)
}
generateversion.depends = FORCE
generateversion.input = VERSION_TEMPLATE
generateversion.output = $$OUT_PWD/version.h
generateversion.commands = $$QMAKE_STREAM_EDITOR \'s/@GIT_VERSION@/$$LR_VERSION/\' ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
generateversion.commands = $$generateHeader($$VERSION_TEMPLATE, $$VERSION_OUTPUT)
generateversion.CONFIG = no_link target_predeps
QMAKE_EXTRA_COMPILERS += generateversion

View File

@ -35,6 +35,12 @@ CONFIG(staticlib) {
DEFINES -= LIMEREPORT_EXPORTS
}
contains(CONFIG, x86_64) {
message(Цель: 64 бита)
} else {
message(Цель: 32 бита)
}
EXTRA_FILES += \
$$PWD/lrglobal.h \
$$PWD/lrdatasourceintf.h \

View File

@ -25,8 +25,8 @@ QModelIndex CompleterModel::index(int row, int column, const QModelIndex& parent
QModelIndex CompleterModel::parent(const QModelIndex& child) const
{
if (child.isValid()) {
if (CompleterItem* childItem = static_cast<CompleterItem*>(child.internalPointer());
childItem) {
CompleterItem* childItem = static_cast<CompleterItem*>(child.internalPointer());
if (childItem) {
CompleterItem* parentItem = childItem->parent();
if (parentItem != &m_root) {
return indexFromItem(parentItem);