0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-23 16:22:58 +03:00

Finish 1.7.8

This commit is contained in:
Arin Alex 2024-06-06 22:44:47 +03:00
commit b4b2da8330
3 changed files with 345 additions and 118 deletions

View File

@ -1,34 +1,38 @@
<?xml version="1.0" encoding="UTF8"?>
<Report>
<object Type="Object" ClassName="LimeReport::ReportEnginePrivate">
<object ClassName="LimeReport::ReportEnginePrivate" Type="Object">
<objectName Type="QString"></objectName>
<pages Type="Collection">
<item Type="Object" ClassName="LimeReport::PageDesignIntf">
<item ClassName="LimeReport::PageDesignIntf" Type="Object">
<objectName Type="QString">page1</objectName>
<sceneRect Type="QRect" y="-50" x="-50" width="2200" height="3070"/>
<itemIndexMethod Type="enumAndFlags" Value="0"/>
<sceneRect Type="QRect" height="2899" width="2259" x="-50" y="-50"/>
<bspTreeDepth Type="int" Value="5"/>
<font stylename="" italic="0" weight="50" underline="0" pointSize="8" Type="QFont" family="MS Shell Dlg 2"/>
<sortCacheEnabled Type="bool" Value="0"/>
<font Type="QFont" family="MS Shell Dlg 2" italic="0" pointSize="8" underline="0" weight="50"/>
<stickyFocus Type="bool" Value="0"/>
<minimumRenderSize Type="qreal" Value="0"/>
<pageItem Type="Object" ClassName="PageItem">
<focusOnTouch Type="bool" Value="1"/>
<pageItem ClassName="PageItem" Type="Object">
<objectName Type="QString">ReportPage1</objectName>
<geometry Type="QRect" y="0" x="0" width="2100" height="2970"/>
<geometry Type="QRect" height="2794" width="2159" x="0" y="0"/>
<children Type="Collection">
<item Type="Object" ClassName="Data">
<item ClassName="Data" Type="Object">
<objectName Type="QString">DataBand1</objectName>
<geometry Type="QRect" y="258" x="50" width="2000" height="100"/>
<geometry Type="QRect" height="100" width="2059" x="50" y="250"/>
<children Type="Collection">
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem2</objectName>
<geometry Type="QRect" y="24" x="20" width="618" height="50"/>
<geometry Type="QRect" height="50" width="618" x="20" y="24"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">DataBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -37,7 +41,7 @@
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="50" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="50"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -57,17 +61,25 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem3</objectName>
<geometry Type="QRect" y="24" x="642" width="462" height="50"/>
<geometry Type="QRect" height="50" width="462" x="642" y="24"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">DataBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -76,7 +88,7 @@
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="50" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="50"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -96,17 +108,25 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem4</objectName>
<geometry Type="QRect" y="24" x="1110" width="328" height="50"/>
<geometry Type="QRect" height="50" width="328" x="1110" y="24"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">DataBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -115,7 +135,7 @@
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="50" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="50"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -135,17 +155,25 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem5</objectName>
<geometry Type="QRect" y="24" x="1450" width="250" height="50"/>
<geometry Type="QRect" height="50" width="250" x="1450" y="24"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">DataBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -154,7 +182,7 @@
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="50" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="50"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -174,17 +202,25 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem6</objectName>
<geometry Type="QRect" y="24" x="1710" width="250" height="50"/>
<geometry Type="QRect" height="50" width="250" x="1710" y="24"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">DataBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -193,7 +229,7 @@
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="50" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="50"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -213,21 +249,33 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
</children>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">ReportPage1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<autoHeight Type="bool" Value="1"/>
<bandIndex Type="int" Value="5"/>
<keepBottomSpace Type="bool" Value="0"/>
<keepTopSpace Type="bool" Value="1"/>
<parentBand Type="QString"></parentBand>
<backgroundColor Type="QColor" Value="#ffffff"/>
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<printIfEmpty Type="bool" Value="0"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundOpacity Type="int" Value="100"/>
<shiftItems Type="int" Value="0"/>
<datasource Type="QString">customers</datasource>
<keepSubdetailTogether Type="bool" Value="0"/>
<splittable Type="bool" Value="0"/>
@ -238,21 +286,25 @@
<startNewPage Type="bool" Value="0"/>
<startFromNewPage Type="bool" Value="0"/>
<alternateBackgroundColor Type="QColor" Value="#e6e6e6"/>
<useAlternateBackgroundColor Type="bool" Value="0"/>
</item>
<item Type="Object" ClassName="DataHeader">
<item ClassName="DataHeader" Type="Object">
<objectName Type="QString">DataHeaderBand1</objectName>
<geometry Type="QRect" y="154" x="50" width="2000" height="100"/>
<geometry Type="QRect" height="100" width="2059" x="50" y="150"/>
<children Type="Collection">
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem7</objectName>
<geometry Type="QRect" y="32" x="20" width="618" height="50"/>
<geometry Type="QRect" height="50" width="618" x="20" y="32"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="2"/>
<parentName Type="QString">DataHeaderBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -261,7 +313,7 @@
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="75" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="75"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="1"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -281,17 +333,25 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem8</objectName>
<geometry Type="QRect" y="32" x="642" width="462" height="50"/>
<geometry Type="QRect" height="50" width="462" x="642" y="32"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="2"/>
<parentName Type="QString">DataHeaderBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -300,7 +360,7 @@
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="75" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="75"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="1"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -320,17 +380,25 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem9</objectName>
<geometry Type="QRect" y="32" x="1112" width="328" height="50"/>
<geometry Type="QRect" height="50" width="328" x="1112" y="32"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="2"/>
<parentName Type="QString">DataHeaderBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -339,7 +407,7 @@
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="75" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="75"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="1"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -359,17 +427,25 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem10</objectName>
<geometry Type="QRect" y="32" x="1452" width="250" height="50"/>
<geometry Type="QRect" height="50" width="250" x="1452" y="32"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="2"/>
<parentName Type="QString">DataHeaderBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -378,7 +454,7 @@
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="75" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="75"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="1"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -398,17 +474,25 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem11</objectName>
<geometry Type="QRect" y="32" x="1712" width="250" height="50"/>
<geometry Type="QRect" height="50" width="250" x="1712" y="32"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="2"/>
<parentName Type="QString">DataHeaderBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -417,7 +501,7 @@
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="75" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="75"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="1"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -437,41 +521,56 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
</children>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">ReportPage1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<autoHeight Type="bool" Value="1"/>
<bandIndex Type="int" Value="4"/>
<keepBottomSpace Type="bool" Value="0"/>
<keepTopSpace Type="bool" Value="1"/>
<parentBand Type="QString">DataBand1</parentBand>
<backgroundColor Type="QColor" Value="#ffffff"/>
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<printIfEmpty Type="bool" Value="0"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundOpacity Type="int" Value="100"/>
<shiftItems Type="int" Value="0"/>
<reprintOnEachPage Type="bool" Value="0"/>
<columnsCount Type="int" Value="1"/>
<columnsFillDirection Type="enumAndFlags" Value="0"/>
<printAlways Type="bool" Value="0"/>
<repeatOnEachRow Type="bool" Value="0"/>
</item>
<item Type="Object" ClassName="ReportHeader">
<item ClassName="ReportHeader" Type="Object">
<objectName Type="QString">ReportHeader1</objectName>
<geometry Type="QRect" y="50" x="50" width="2000" height="100"/>
<geometry Type="QRect" height="100" width="2059" x="50" y="50"/>
<children Type="Collection">
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem1</objectName>
<geometry Type="QRect" y="20" x="12" width="1964" height="50"/>
<geometry Type="QRect" height="50" width="1964" x="12" y="20"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">ReportHeader1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -480,7 +579,7 @@
<alignment Type="enumAndFlags" Value="132"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="75" underline="0" pointSize="10" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="10" underline="0" weight="75"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="1"/>
<backgroundColor Type="QColor" Value="#7d7d7d"/>
@ -500,37 +599,53 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
</children>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">ReportPage1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<autoHeight Type="bool" Value="1"/>
<bandIndex Type="int" Value="1"/>
<keepBottomSpace Type="bool" Value="0"/>
<keepTopSpace Type="bool" Value="1"/>
<parentBand Type="QString"></parentBand>
<backgroundColor Type="QColor" Value="#ffffff"/>
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<printIfEmpty Type="bool" Value="0"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundOpacity Type="int" Value="100"/>
<shiftItems Type="int" Value="0"/>
<splittable Type="bool" Value="0"/>
<printBeforePageHeader Type="bool" Value="0"/>
</item>
<item Type="Object" ClassName="PageFooter">
<item ClassName="PageFooter" Type="Object">
<objectName Type="QString">PageFooter11</objectName>
<geometry Type="QRect" y="362" x="50" width="2000" height="84"/>
<geometry Type="QRect" height="84" width="2059" x="50" y="350"/>
<children Type="Collection">
<item Type="Object" ClassName="ShapeItem">
<item ClassName="ShapeItem" Type="Object">
<objectName Type="QString">ShapeItem11</objectName>
<geometry Type="QRect" y="-4" x="16" width="1962" height="22"/>
<geometry Type="QRect" height="22" width="1962" x="16" y="-4"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">PageFooter11</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -543,16 +658,19 @@
<opacity Type="int" Value="100"/>
<cornerRadius Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem12</objectName>
<geometry Type="QRect" y="20" x="1614" width="364" height="50"/>
<geometry Type="QRect" height="50" width="364" x="1614" y="20"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">PageFooter11</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -561,7 +679,7 @@
<alignment Type="enumAndFlags" Value="34"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font stylename="" italic="0" weight="50" underline="0" pointSize="9" Type="QFont" family="Arial"/>
<font Type="QFont" family="Arial" italic="0" pointSize="9" underline="0" weight="50"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="1"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -581,48 +699,76 @@
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
</children>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">ReportPage1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<autoHeight Type="bool" Value="1"/>
<bandIndex Type="int" Value="6"/>
<keepBottomSpace Type="bool" Value="0"/>
<keepTopSpace Type="bool" Value="1"/>
<parentBand Type="QString"></parentBand>
<backgroundColor Type="QColor" Value="#ffffff"/>
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<printIfEmpty Type="bool" Value="0"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundOpacity Type="int" Value="100"/>
<shiftItems Type="int" Value="0"/>
<printOnFirstPage Type="bool" Value="1"/>
<printOnLastPage Type="bool" Value="1"/>
<removeGap Type="bool" Value="0"/>
</item>
</children>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString"></parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<topMargin Type="int" Value="5"/>
<bottomMargin Type="int" Value="5"/>
<rightMargin Type="int" Value="5"/>
<leftMargin Type="int" Value="5"/>
<pageOrientation Type="enumAndFlags" Value="0"/>
<pageSize Type="enumAndFlags" Value="0"/>
<gridStep Type="int" Value="2"/>
<gridStep Type="int" Value="1"/>
<fullPage Type="bool" Value="0"/>
<oldPrintMode Type="bool" Value="0"/>
<resetPageNumber Type="bool" Value="0"/>
<isExtendedInDesignMode Type="bool" Value="0"/>
<extendedHeight Type="int" Value="1000"/>
<pageIsTOC Type="bool" Value="0"/>
<setPageSizeToPrinter Type="bool" Value="0"/>
<endlessHeight Type="bool" Value="0"/>
<printable Type="bool" Value="1"/>
<printerName Type="QString"></printerName>
<units Type="enumAndFlags" Value="0"/>
<printBehavior Type="enumAndFlags" Value="1"/>
<dropPrinterMargins Type="bool" Value="0"/>
<notPrintIfEmpty Type="bool" Value="0"/>
<mixWithPriorPage Type="bool" Value="0"/>
</pageItem>
</item>
</pages>
<datasourcesManager Type="Object" ClassName="LimeReport::DataSourceManager">
<datasourcesManager ClassName="LimeReport::DataSourceManager" Type="Object">
<objectName Type="QString">datasources</objectName>
<connections Type="Collection">
<item Type="Object" ClassName="LimeReport::ConnectionDesc">
<item ClassName="LimeReport::ConnectionDesc" Type="Object">
<objectName Type="QString"></objectName>
<name Type="QString">db</name>
<driver Type="QString">QSQLITE</driver>
@ -632,10 +778,11 @@
<host Type="QString"></host>
<autoconnect Type="bool" Value="1"/>
<keepDBCredentials Type="bool" Value="1"/>
<port Type="QString"></port>
</item>
</connections>
<queries Type="Collection">
<item Type="Object" ClassName="LimeReport::QueryDesc">
<item ClassName="LimeReport::QueryDesc" Type="Object">
<objectName Type="QString"></objectName>
<queryName Type="QString">customers</queryName>
<queryText Type="QString">Select * from customer</queryText>
@ -645,12 +792,22 @@
<subqueries Type="Collection"/>
<subproxies Type="Collection"/>
<variables Type="Collection"/>
<csvs Type="Collection"/>
</datasourcesManager>
<scriptContext Type="Object" ClassName="LimeReport::ScriptEngineContext">
<scriptContext ClassName="LimeReport::ScriptEngineContext" Type="Object">
<objectName Type="QString"></objectName>
<dialogs Type="Collection"/>
<initScript Type="QString"></initScript>
<initScript Type="QString">function BeforeDataRender(){
setVariable("TEMP", "11")
if (getField("customers.Company") === "Unisco") {
ReportPage1_DataBand1.backgroundColor = LimeReport.color("red")
setVariable("TEMP","FIIL")
}
}
DataBand1.beforeRender.connect(BeforeDataRender)</initScript>
</scriptContext>
<suppressFieldAndVarError Type="bool" Value="0"/>
<translation Type="Translation"/>
</object>
</Report>

View File

@ -1,44 +1,51 @@
<?xml version="1.0" encoding="UTF8"?>
<Report>
<object Type="Object" ClassName="LimeReport::ReportEnginePrivate">
<object ClassName="LimeReport::ReportEnginePrivate" Type="Object">
<objectName Type="QString"></objectName>
<pages Type="Collection">
<item Type="Object" ClassName="LimeReport::PageDesignIntf">
<item ClassName="LimeReport::PageDesignIntf" Type="Object">
<objectName Type="QString">page1</objectName>
<sceneRect Type="QRect" x="-50" y="-50" height="3070" width="2200"/>
<itemIndexMethod Type="enumAndFlags" Value="0"/>
<sceneRect Type="QRect" height="2899" width="2259" x="-50" y="-50"/>
<bspTreeDepth Type="int" Value="5"/>
<font Type="QFont" family="Noto Sans" weight="50" underline="0" italic="0" pointSize="9" stylename=""/>
<sortCacheEnabled Type="bool" Value="0"/>
<font Type="QFont" family="Noto Sans" italic="0" pointSize="9" underline="0" weight="50"/>
<stickyFocus Type="bool" Value="0"/>
<minimumRenderSize Type="qreal" Value="0"/>
<pageItem Type="Object" ClassName="PageItem">
<focusOnTouch Type="bool" Value="1"/>
<pageItem ClassName="PageItem" Type="Object">
<objectName Type="QString">ReportPage1</objectName>
<geometry Type="QRect" x="0" y="0" height="2970" width="2100"/>
<geometry Type="QRect" height="2794" width="2159" x="0" y="0"/>
<children Type="Collection">
<item Type="Object" ClassName="Data">
<item ClassName="Data" Type="Object">
<objectName Type="QString">DataBand1</objectName>
<geometry Type="QRect" x="50" y="50" height="100" width="2000"/>
<geometry Type="QRect" height="100" width="2059" x="50" y="50"/>
<children Type="Collection">
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem2</objectName>
<geometry Type="QRect" x="20" y="22" height="50" width="746"/>
<geometry Type="QRect" height="50" width="746" x="20" y="22"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">DataBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
<content Type="QString">$S{
if ( $D{master.CustomerID} == "ALFKI") THIS.fontColor=QColor("red");""}$D{master.CompanyName}</content>
if ( $D{master.CustomerID} == "ALFKI")
THIS.fontColor=LimeReport.color("red");""}
$D{master.CompanyName}
}</content>
<margin Type="int" Value="4"/>
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font Type="QFont" family="Sans Serif" weight="50" underline="0" italic="0" pointSize="9" stylename=""/>
<font Type="QFont" family="Sans Serif" italic="0" pointSize="9" underline="0" weight="50"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="1"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -58,17 +65,25 @@ if ( $D{master.CustomerID} == "ALFKI") THIS.fontColor=QColor("red");""}$D{master
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem1</objectName>
<geometry Type="QRect" x="776" y="22" height="50" width="426"/>
<geometry Type="QRect" height="50" width="426" x="776" y="22"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">DataBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -77,7 +92,7 @@ if ( $D{master.CustomerID} == "ALFKI") THIS.fontColor=QColor("red");""}$D{master
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font Type="QFont" family="Arial" weight="50" underline="0" italic="0" pointSize="10" stylename=""/>
<font Type="QFont" family="Arial" italic="0" pointSize="10" underline="0" weight="50"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="1"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -97,21 +112,33 @@ if ( $D{master.CustomerID} == "ALFKI") THIS.fontColor=QColor("red");""}$D{master
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
</children>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">ReportPage1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<autoHeight Type="bool" Value="1"/>
<bandIndex Type="int" Value="4"/>
<keepBottomSpace Type="bool" Value="0"/>
<keepTopSpace Type="bool" Value="1"/>
<parentBand Type="QString"></parentBand>
<backgroundColor Type="QColor" Value="#ffffff"/>
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<printIfEmpty Type="bool" Value="0"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundOpacity Type="int" Value="100"/>
<shiftItems Type="int" Value="0"/>
<datasource Type="QString">master</datasource>
<keepSubdetailTogether Type="bool" Value="0"/>
<splittable Type="bool" Value="0"/>
@ -122,21 +149,25 @@ if ( $D{master.CustomerID} == "ALFKI") THIS.fontColor=QColor("red");""}$D{master
<startNewPage Type="bool" Value="0"/>
<startFromNewPage Type="bool" Value="0"/>
<alternateBackgroundColor Type="QColor" Value="#ffffff"/>
<useAlternateBackgroundColor Type="bool" Value="0"/>
</item>
<item Type="Object" ClassName="SubDetail">
<item ClassName="SubDetail" Type="Object">
<objectName Type="QString">SubDetailBand1</objectName>
<geometry Type="QRect" x="50" y="154" height="100" width="2000"/>
<geometry Type="QRect" height="100" width="2059" x="50" y="150"/>
<children Type="Collection">
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem5</objectName>
<geometry Type="QRect" x="98" y="16" height="50" width="250"/>
<geometry Type="QRect" height="50" width="250" x="98" y="16"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">SubDetailBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -145,7 +176,7 @@ if ( $D{master.CustomerID} == "ALFKI") THIS.fontColor=QColor("red");""}$D{master
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font Type="QFont" family="Sans Serif" weight="50" underline="0" italic="0" pointSize="9" stylename=""/>
<font Type="QFont" family="Sans Serif" italic="0" pointSize="9" underline="0" weight="50"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -165,17 +196,25 @@ if ( $D{master.CustomerID} == "ALFKI") THIS.fontColor=QColor("red");""}$D{master
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
<item Type="Object" ClassName="TextItem">
<item ClassName="TextItem" Type="Object">
<objectName Type="QString">TextItem6</objectName>
<geometry Type="QRect" x="360" y="16" height="50" width="250"/>
<geometry Type="QRect" height="50" width="250" x="360" y="16"/>
<children Type="Collection"/>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">SubDetailBand1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<itemLocation Type="enumAndFlags" Value="0"/>
<stretchToMaxHeight Type="bool" Value="0"/>
<itemAlign Type="enumAndFlags" Value="4"/>
@ -184,7 +223,7 @@ if ( $D{master.CustomerID} == "ALFKI") THIS.fontColor=QColor("red");""}$D{master
<alignment Type="enumAndFlags" Value="33"/>
<autoWidth Type="enumAndFlags" Value="0"/>
<autoHeight Type="bool" Value="0"/>
<font Type="QFont" family="Sans Serif" weight="50" underline="0" italic="0" pointSize="9" stylename=""/>
<font Type="QFont" family="Sans Serif" italic="0" pointSize="9" underline="0" weight="50"/>
<backgroundOpacity Type="int" Value="100"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundColor Type="QColor" Value="#ffffff"/>
@ -204,65 +243,94 @@ if ( $D{master.CustomerID} == "ALFKI") THIS.fontColor=QColor("red");""}$D{master
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<textIndent Type="qreal" Value="0"/>
<textLayoutDirection Type="enumAndFlags" Value="2"/>
<fillInSecondPass Type="bool" Value="0"/>
<watermark Type="bool" Value="0"/>
<replaceCRwithBR Type="bool" Value="0"/>
<hideIfEmpty Type="bool" Value="0"/>
<fontLetterSpacing Type="int" Value="0"/>
</item>
</children>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString">ReportPage1</parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<autoHeight Type="bool" Value="1"/>
<bandIndex Type="int" Value="5"/>
<keepBottomSpace Type="bool" Value="0"/>
<keepTopSpace Type="bool" Value="1"/>
<parentBand Type="QString">DataBand1</parentBand>
<backgroundColor Type="QColor" Value="#aaff7f"/>
<backgroundBrushStyle Type="enumAndFlags" Value="1"/>
<printIfEmpty Type="bool" Value="0"/>
<backgroundMode Type="enumAndFlags" Value="0"/>
<backgroundOpacity Type="int" Value="100"/>
<shiftItems Type="int" Value="0"/>
<datasource Type="QString"></datasource>
<splittable Type="bool" Value="0"/>
<columnsCount Type="int" Value="1"/>
<columnsFillDirection Type="enumAndFlags" Value="0"/>
<keepFooterTogether Type="bool" Value="0"/>
<alternateBackgroundColor Type="QColor" Value="#aaff7f"/>
<useAlternateBackgroundColor Type="bool" Value="0"/>
</item>
</children>
<zOrder Type="qreal" Value="0"/>
<borders Type="enumAndFlags" Value="0"/>
<parentName Type="QString"></parentName>
<borderLineSize Type="int" Value="0"/>
<borderLineSize Type="qreal" Value="0"/>
<isVisible Type="bool" Value="1"/>
<shadow Type="bool" Value="0"/>
<borderColor Type="QColor" Value="#000000"/>
<geometryLocked Type="bool" Value="0"/>
<borderStyle Type="enumAndFlags" Value="1"/>
<topMargin Type="int" Value="5"/>
<bottomMargin Type="int" Value="5"/>
<rightMargin Type="int" Value="5"/>
<leftMargin Type="int" Value="5"/>
<pageOrientation Type="enumAndFlags" Value="0"/>
<pageSize Type="enumAndFlags" Value="0"/>
<gridStep Type="int" Value="2"/>
<gridStep Type="int" Value="1"/>
<fullPage Type="bool" Value="0"/>
<oldPrintMode Type="bool" Value="0"/>
<resetPageNumber Type="bool" Value="0"/>
<isExtendedInDesignMode Type="bool" Value="0"/>
<extendedHeight Type="int" Value="1000"/>
<pageIsTOC Type="bool" Value="0"/>
<setPageSizeToPrinter Type="bool" Value="0"/>
<endlessHeight Type="bool" Value="0"/>
<printable Type="bool" Value="1"/>
<printerName Type="QString"></printerName>
<units Type="enumAndFlags" Value="0"/>
<printBehavior Type="enumAndFlags" Value="1"/>
<dropPrinterMargins Type="bool" Value="0"/>
<notPrintIfEmpty Type="bool" Value="0"/>
<mixWithPriorPage Type="bool" Value="0"/>
</pageItem>
</item>
</pages>
<datasourcesManager Type="Object" ClassName="LimeReport::DataSourceManager">
<datasourcesManager ClassName="LimeReport::DataSourceManager" Type="Object">
<objectName Type="QString">datasources</objectName>
<connections Type="Collection">
<item Type="Object" ClassName="LimeReport::ConnectionDesc">
<item ClassName="LimeReport::ConnectionDesc" Type="Object">
<objectName Type="QString"></objectName>
<name Type="QString">db</name>
<driver Type="QString">QSQLITE</driver>
<databaseName Type="QString">./demo_reports/northwind.db</databaseName>
<databaseName Type="QString">/home/alex/Work/C++/Projects/LimeReport/demo_r1/demo_reports/northwind.db</databaseName>
<userName Type="QString"></userName>
<password Type="QString" Value=""/>
<host Type="QString"></host>
<autoconnect Type="bool" Value="1"/>
<keepDBCredentials Type="bool" Value="1"/>
<port Type="QString"></port>
</item>
</connections>
<queries Type="Collection">
<item Type="Object" ClassName="LimeReport::QueryDesc">
<item ClassName="LimeReport::QueryDesc" Type="Object">
<objectName Type="QString"></objectName>
<queryName Type="QString">master</queryName>
<queryText Type="QString">Select * from customers limit 5</queryText>
@ -272,24 +340,26 @@ if ( $D{master.CustomerID} == "ALFKI") THIS.fontColor=QColor("red");""}$D{master
<subqueries Type="Collection"/>
<subproxies Type="Collection"/>
<variables Type="Collection"/>
<csvs Type="Collection"/>
</datasourcesManager>
<scriptContext Type="Object" ClassName="LimeReport::ScriptEngineContext">
<scriptContext ClassName="LimeReport::ScriptEngineContext" Type="Object">
<objectName Type="QString"></objectName>
<dialogs Type="Collection"/>
<initScript Type="QString">SubDetailBand1.afterData.connect(SB1AfterData);
<initScript Type="QString">ReportPage1_SubDetailBand1.afterData.connect(SB1AfterData);
function SB1AfterData(){
if (getField("master.CustomerID")=="ALFKI") {
SubDetailBand1.isVisible = false;
TextItem2.fontColor = QColor("red");
TextItem2.fontColor = LimeReport.color("red");
TextItem1.content = "sub band is not visible"
} else {
TextItem5.fontColor = QColor("red");
TextItem5.fontColor = LimeReport.color("red");
TextItem1.content = "sub band is visible"
}
}
</initScript>
</scriptContext>
<suppressFieldAndVarError Type="bool" Value="0"/>
<translation Type="Translation"/>
</object>
</Report>

View File

@ -606,7 +606,7 @@ BandDesignIntf* ReportRender::renderBand(BandDesignIntf *patternBand, BandDesign
if (patternBand->isFooter())
m_lastRenderedFooter = patternBand;
bandClone->setBackgroundColor(makeBackgroundColor(patternBand));
bandClone->setBackgroundColor(makeBackgroundColor(bandClone));
patternBand->emitBandRendered(bandClone);
m_scriptEngineContext->setCurrentBand(bandClone);