mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-09-23 16:49:07 +03:00
QJSEngine will be used if Qt version 5.6 and higher
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF8"?>
|
||||
<Report>
|
||||
<object ClassName="LimeReport::ReportEnginePrivate" Type="Object">
|
||||
<object Type="Object" ClassName="LimeReport::ReportEnginePrivate">
|
||||
<objectName Type="QString"></objectName>
|
||||
<pages Type="Collection">
|
||||
<item ClassName="LimeReport::PageDesignIntf" Type="Object">
|
||||
<item Type="Object" ClassName="LimeReport::PageDesignIntf">
|
||||
<objectName Type="QString">page1</objectName>
|
||||
<sceneRect Type="QRect" width="2200" x="-50" y="-50" height="3070"/>
|
||||
<sceneRect Type="QRect" x="-50" y="-50" width="2200" height="3070"/>
|
||||
<bspTreeDepth Value="5" Type="int"/>
|
||||
<font stylename="" Type="QFont" pointSize="8" underline="0" family="MS Shell Dlg 2" weight="50" italic="0"/>
|
||||
<font underline="0" Type="QFont" italic="0" family="MS Shell Dlg 2" weight="50" pointSize="8" stylename=""/>
|
||||
<sortCacheEnabled Value="0" Type="bool"/>
|
||||
<stickyFocus Value="0" Type="bool"/>
|
||||
<minimumRenderSize Value="0" Type="qreal"/>
|
||||
<pageItem ClassName="PageItem" Type="Object">
|
||||
<pageItem Type="Object" ClassName="PageItem">
|
||||
<objectName Type="QString">ReportPage1</objectName>
|
||||
<geometry Type="QRect" width="2100" x="0" y="0" height="2970"/>
|
||||
<geometry Type="QRect" x="0" y="0" width="2100" height="2970"/>
|
||||
<children Type="Collection">
|
||||
<item ClassName="Data" Type="Object">
|
||||
<item Type="Object" ClassName="Data">
|
||||
<objectName Type="QString">DataBand1</objectName>
|
||||
<geometry Type="QRect" width="2000" x="50" y="306" height="110"/>
|
||||
<geometry Type="QRect" x="50" y="306" width="2000" height="110"/>
|
||||
<children Type="Collection">
|
||||
<item ClassName="TextItem" Type="Object">
|
||||
<item Type="Object" ClassName="TextItem">
|
||||
<objectName Type="QString">TextItem2</objectName>
|
||||
<geometry Type="QRect" width="814" x="38" y="32" height="50"/>
|
||||
<geometry Type="QRect" x="38" y="32" width="814" height="50"/>
|
||||
<children Type="Collection"/>
|
||||
<zOrder Value="0" Type="qreal"/>
|
||||
<borders Value="0" Type="enumAndFlags"/>
|
||||
@@ -51,7 +51,7 @@ if ($D{customers.CustomerID}=="ANTON"){
|
||||
<alignment Value="33" Type="enumAndFlags"/>
|
||||
<autoWidth Value="0" Type="enumAndFlags"/>
|
||||
<autoHeight Value="0" Type="bool"/>
|
||||
<font stylename="" Type="QFont" pointSize="10" underline="0" family="Arial" weight="50" italic="0"/>
|
||||
<font underline="0" Type="QFont" italic="0" family="Arial" weight="50" pointSize="10" stylename=""/>
|
||||
<backgroundOpacity Value="100" Type="int"/>
|
||||
<backgroundMode Value="1" Type="enumAndFlags"/>
|
||||
<backgroundColor Value="#ffffff" Type="QColor"/>
|
||||
@@ -65,6 +65,13 @@ if ($D{customers.CustomerID}=="ANTON"){
|
||||
<underlineLineSize Value="1" Type="int"/>
|
||||
<allowHTML Value="1" Type="bool"/>
|
||||
<allowHTMLInFields Value="0" Type="bool"/>
|
||||
<format Type="QString"></format>
|
||||
<valueType Value="0" Type="enumAndFlags"/>
|
||||
<followTo Type="QString"></followTo>
|
||||
<backgroundBrushStyle Value="1" Type="enumAndFlags"/>
|
||||
<textIndent Value="0" Type="qreal"/>
|
||||
<textLayoutDirection Value="2" Type="enumAndFlags"/>
|
||||
<fillInSecondPass Value="0" Type="bool"/>
|
||||
</item>
|
||||
</children>
|
||||
<zOrder Value="0" Type="qreal"/>
|
||||
@@ -78,6 +85,7 @@ if ($D{customers.CustomerID}=="ANTON"){
|
||||
<keepBottomSpace Value="0" Type="bool"/>
|
||||
<parentBand Type="QString"></parentBand>
|
||||
<backgroundColor Value="#ffffff" Type="QColor"/>
|
||||
<backgroundBrushStyle Value="1" Type="enumAndFlags"/>
|
||||
<printIfEmpty Value="0" Type="bool"/>
|
||||
<datasource Type="QString">customers</datasource>
|
||||
<keepSubdetailTogether Value="0" Type="bool"/>
|
||||
@@ -88,14 +96,16 @@ if ($D{customers.CustomerID}=="ANTON"){
|
||||
<columnsFillDirection Value="0" Type="enumAndFlags"/>
|
||||
<startNewPage Value="0" Type="bool"/>
|
||||
<startFromNewPage Value="0" Type="bool"/>
|
||||
<alternateBackgroundColor Value="#ffffff" Type="QColor"/>
|
||||
<useAlternateBackgroundColor Value="0" Type="bool"/>
|
||||
</item>
|
||||
<item ClassName="ReportHeader" Type="Object">
|
||||
<item Type="Object" ClassName="ReportHeader">
|
||||
<objectName Type="QString">ReportHeader1</objectName>
|
||||
<geometry Type="QRect" width="2000" x="50" y="50" height="252"/>
|
||||
<geometry Type="QRect" x="50" y="50" width="2000" height="252"/>
|
||||
<children Type="Collection">
|
||||
<item ClassName="TextItem" Type="Object">
|
||||
<item Type="Object" ClassName="TextItem">
|
||||
<objectName Type="QString">TextItem1</objectName>
|
||||
<geometry Type="QRect" width="816" x="6" y="12" height="222"/>
|
||||
<geometry Type="QRect" x="6" y="12" width="816" height="222"/>
|
||||
<children Type="Collection"/>
|
||||
<zOrder Value="0" Type="qreal"/>
|
||||
<borders Value="0" Type="enumAndFlags"/>
|
||||
@@ -107,10 +117,10 @@ if ($D{customers.CustomerID}=="ANTON"){
|
||||
<stretchToMaxHeight Value="0" Type="bool"/>
|
||||
<itemAlign Value="4" Type="enumAndFlags"/>
|
||||
<content Type="QString">$S{
|
||||
var color = new QColor('#DEB887');
|
||||
var font = new QFont('Times New Roman',26,false,true);
|
||||
var color = LimeReport.color('#DEB887');
|
||||
var font = LimeReport.font('Times New Roman',26,false,true);
|
||||
THIS.backgroundColor = color;
|
||||
THIS.fontColor = QColor('red');
|
||||
THIS.fontColor = LimeReport.color('red');
|
||||
THIS.font = font;
|
||||
|
||||
'Test'}</content>
|
||||
@@ -118,7 +128,7 @@ THIS.font = font;
|
||||
<alignment Value="33" Type="enumAndFlags"/>
|
||||
<autoWidth Value="0" Type="enumAndFlags"/>
|
||||
<autoHeight Value="0" Type="bool"/>
|
||||
<font stylename="" Type="QFont" pointSize="10" underline="0" family="Times New Roman" weight="50" italic="0"/>
|
||||
<font underline="0" Type="QFont" italic="0" family="Times New Roman" weight="50" pointSize="10" stylename=""/>
|
||||
<backgroundOpacity Value="100" Type="int"/>
|
||||
<backgroundMode Value="1" Type="enumAndFlags"/>
|
||||
<backgroundColor Value="#ffffff" Type="QColor"/>
|
||||
@@ -132,10 +142,17 @@ THIS.font = font;
|
||||
<underlineLineSize Value="1" Type="int"/>
|
||||
<allowHTML Value="0" Type="bool"/>
|
||||
<allowHTMLInFields Value="0" Type="bool"/>
|
||||
<format Type="QString"></format>
|
||||
<valueType Value="0" Type="enumAndFlags"/>
|
||||
<followTo Type="QString"></followTo>
|
||||
<backgroundBrushStyle Value="1" Type="enumAndFlags"/>
|
||||
<textIndent Value="0" Type="qreal"/>
|
||||
<textLayoutDirection Value="2" Type="enumAndFlags"/>
|
||||
<fillInSecondPass Value="0" Type="bool"/>
|
||||
</item>
|
||||
<item ClassName="TextItem" Type="Object">
|
||||
<item Type="Object" ClassName="TextItem">
|
||||
<objectName Type="QString">TextItem3</objectName>
|
||||
<geometry Type="QRect" width="408" x="878" y="44" height="86"/>
|
||||
<geometry Type="QRect" x="878" y="44" width="408" height="86"/>
|
||||
<children Type="Collection"/>
|
||||
<zOrder Value="0" Type="qreal"/>
|
||||
<borders Value="0" Type="enumAndFlags"/>
|
||||
@@ -151,7 +168,7 @@ THIS.font = font;
|
||||
<alignment Value="33" Type="enumAndFlags"/>
|
||||
<autoWidth Value="0" Type="enumAndFlags"/>
|
||||
<autoHeight Value="0" Type="bool"/>
|
||||
<font stylename="" Type="QFont" pointSize="10" underline="0" family="Arial" weight="50" italic="0"/>
|
||||
<font underline="0" Type="QFont" italic="0" family="Arial" weight="50" pointSize="10" stylename=""/>
|
||||
<backgroundOpacity Value="100" Type="int"/>
|
||||
<backgroundMode Value="1" Type="enumAndFlags"/>
|
||||
<backgroundColor Value="#ffffff" Type="QColor"/>
|
||||
@@ -165,6 +182,13 @@ THIS.font = font;
|
||||
<underlineLineSize Value="1" Type="int"/>
|
||||
<allowHTML Value="1" Type="bool"/>
|
||||
<allowHTMLInFields Value="0" Type="bool"/>
|
||||
<format Type="QString"></format>
|
||||
<valueType Value="0" Type="enumAndFlags"/>
|
||||
<followTo Type="QString"></followTo>
|
||||
<backgroundBrushStyle Value="1" Type="enumAndFlags"/>
|
||||
<textIndent Value="0" Type="qreal"/>
|
||||
<textLayoutDirection Value="2" Type="enumAndFlags"/>
|
||||
<fillInSecondPass Value="0" Type="bool"/>
|
||||
</item>
|
||||
</children>
|
||||
<zOrder Value="0" Type="qreal"/>
|
||||
@@ -178,8 +202,10 @@ THIS.font = font;
|
||||
<keepBottomSpace Value="0" Type="bool"/>
|
||||
<parentBand Type="QString"></parentBand>
|
||||
<backgroundColor Value="#ffffff" Type="QColor"/>
|
||||
<backgroundBrushStyle Value="1" Type="enumAndFlags"/>
|
||||
<printIfEmpty Value="0" Type="bool"/>
|
||||
<splittable Value="0" Type="bool"/>
|
||||
<printBeforePageHeader Value="0" Type="bool"/>
|
||||
</item>
|
||||
</children>
|
||||
<zOrder Value="0" Type="qreal"/>
|
||||
@@ -197,13 +223,19 @@ THIS.font = font;
|
||||
<gridStep Value="2" Type="int"/>
|
||||
<fullPage Value="0" Type="bool"/>
|
||||
<oldPrintMode Value="0" Type="bool"/>
|
||||
<resetPageNumber Value="0" Type="bool"/>
|
||||
<isExtendedInDesignMode Value="0" Type="bool"/>
|
||||
<extendedHeight Value="1000" Type="int"/>
|
||||
<pageIsTOC Value="0" Type="bool"/>
|
||||
<setPageSizeToPrinter Value="0" Type="bool"/>
|
||||
<endlessHeight Value="0" Type="bool"/>
|
||||
</pageItem>
|
||||
</item>
|
||||
</pages>
|
||||
<datasourcesManager ClassName="LimeReport::DataSourceManager" Type="Object">
|
||||
<datasourcesManager Type="Object" ClassName="LimeReport::DataSourceManager">
|
||||
<objectName Type="QString">datasources</objectName>
|
||||
<connections Type="Collection">
|
||||
<item ClassName="LimeReport::ConnectionDesc" Type="Object">
|
||||
<item Type="Object" ClassName="LimeReport::ConnectionDesc">
|
||||
<objectName Type="QString"></objectName>
|
||||
<name Type="QString">test</name>
|
||||
<driver Type="QString">QSQLITE</driver>
|
||||
@@ -212,10 +244,11 @@ THIS.font = font;
|
||||
<password Value="" Type="QString"/>
|
||||
<host Type="QString"></host>
|
||||
<autoconnect Value="0" Type="bool"/>
|
||||
<keepDBCredentials Value="1" Type="bool"/>
|
||||
</item>
|
||||
</connections>
|
||||
<queries Type="Collection">
|
||||
<item ClassName="LimeReport::QueryDesc" Type="Object">
|
||||
<item Type="Object" ClassName="LimeReport::QueryDesc">
|
||||
<objectName Type="QString"></objectName>
|
||||
<queryName Type="QString">customers</queryName>
|
||||
<queryText Type="QString">Select * from customers limit 5</queryText>
|
||||
@@ -225,18 +258,21 @@ THIS.font = font;
|
||||
<subqueries Type="Collection"/>
|
||||
<subproxies Type="Collection"/>
|
||||
<variables Type="Collection">
|
||||
<item ClassName="LimeReport::VarDesc" Type="Object">
|
||||
<item Type="Object" ClassName="LimeReport::VarDesc">
|
||||
<objectName Type="QString"></objectName>
|
||||
<name Type="QString">TestName</name>
|
||||
<value Type="QString">TestValue</value>
|
||||
<isMandatory Value="0" Type="bool"/>
|
||||
<dataType Value="0" Type="int"/>
|
||||
</item>
|
||||
</variables>
|
||||
</datasourcesManager>
|
||||
<scriptContext ClassName="LimeReport::ScriptEngineContext" Type="Object">
|
||||
<scriptContext Type="Object" ClassName="LimeReport::ScriptEngineContext">
|
||||
<objectName Type="QString"></objectName>
|
||||
<dialogs Type="Collection"/>
|
||||
<initScript Type="QString"></initScript>
|
||||
</scriptContext>
|
||||
<suppressFieldAndVarError Value="0" Type="bool"/>
|
||||
<translation Type="Translation"/>
|
||||
</object>
|
||||
</Report>
|
||||
|
Reference in New Issue
Block a user