mirror of
				https://github.com/fralx/LimeReport.git
				synced 2025-10-30 21:07:12 +03:00 
			
		
		
		
	Qt6 support added
This commit is contained in:
		| @@ -1,27 +1,27 @@ | ||||
| <?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" width="2200" height="3070"/> | ||||
|         <sceneRect Type="QRect" width="2200" x="-50" y="-50" height="3070"/> | ||||
|         <bspTreeDepth Value="5" Type="int"/> | ||||
|         <font underline="0" Type="QFont" italic="0" family="MS Shell Dlg 2" weight="50" pointSize="8" stylename=""/> | ||||
|         <font stylename="" Type="QFont" pointSize="8" underline="0" family="MS Shell Dlg 2" weight="50" italic="0"/> | ||||
|         <sortCacheEnabled Value="0" Type="bool"/> | ||||
|         <stickyFocus Value="0" Type="bool"/> | ||||
|         <minimumRenderSize Value="0" Type="qreal"/> | ||||
|         <pageItem Type="Object" ClassName="PageItem"> | ||||
|         <pageItem ClassName="PageItem" Type="Object"> | ||||
|           <objectName Type="QString">ReportPage1</objectName> | ||||
|           <geometry Type="QRect" x="0" y="0" width="2100" height="2970"/> | ||||
|           <geometry Type="QRect" width="2100" x="0" y="0" height="2970"/> | ||||
|           <children Type="Collection"> | ||||
|             <item Type="Object" ClassName="Data"> | ||||
|             <item ClassName="Data" Type="Object"> | ||||
|               <objectName Type="QString">DataBand1</objectName> | ||||
|               <geometry Type="QRect" x="50" y="306" width="2000" height="110"/> | ||||
|               <geometry Type="QRect" width="2000" x="50" y="306" height="110"/> | ||||
|               <children Type="Collection"> | ||||
|                 <item Type="Object" ClassName="TextItem"> | ||||
|                 <item ClassName="TextItem" Type="Object"> | ||||
|                   <objectName Type="QString">TextItem2</objectName> | ||||
|                   <geometry Type="QRect" x="38" y="32" width="814" height="50"/> | ||||
|                   <geometry Type="QRect" width="814" x="38" y="32" 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 underline="0" Type="QFont" italic="0" family="Arial" weight="50" pointSize="10" stylename=""/> | ||||
|                   <font stylename="" Type="QFont" pointSize="10" underline="0" family="Arial" weight="50" italic="0"/> | ||||
|                   <backgroundOpacity Value="100" Type="int"/> | ||||
|                   <backgroundMode Value="1" Type="enumAndFlags"/> | ||||
|                   <backgroundColor Value="#ffffff" Type="QColor"/> | ||||
| @@ -65,13 +65,6 @@ 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"/> | ||||
| @@ -85,7 +78,6 @@ 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"/> | ||||
| @@ -96,16 +88,14 @@ 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 Type="Object" ClassName="ReportHeader"> | ||||
|             <item ClassName="ReportHeader" Type="Object"> | ||||
|               <objectName Type="QString">ReportHeader1</objectName> | ||||
|               <geometry Type="QRect" x="50" y="50" width="2000" height="252"/> | ||||
|               <geometry Type="QRect" width="2000" x="50" y="50" height="252"/> | ||||
|               <children Type="Collection"> | ||||
|                 <item Type="Object" ClassName="TextItem"> | ||||
|                 <item ClassName="TextItem" Type="Object"> | ||||
|                   <objectName Type="QString">TextItem1</objectName> | ||||
|                   <geometry Type="QRect" x="6" y="12" width="816" height="222"/> | ||||
|                   <geometry Type="QRect" width="816" x="6" y="12" height="222"/> | ||||
|                   <children Type="Collection"/> | ||||
|                   <zOrder Value="0" Type="qreal"/> | ||||
|                   <borders Value="0" Type="enumAndFlags"/> | ||||
| @@ -117,10 +107,10 @@ if ($D{customers.CustomerID}=="ANTON"){ | ||||
|                   <stretchToMaxHeight Value="0" Type="bool"/> | ||||
|                   <itemAlign Value="4" Type="enumAndFlags"/> | ||||
|                   <content Type="QString">$S{ | ||||
| var color = LimeReport.color('#DEB887'); | ||||
| var font = LimeReport.font('Times New Roman',26,false,true); | ||||
| var color = new QColor('#DEB887'); | ||||
| var font = new QFont('Times New Roman',26,false,true); | ||||
| THIS.backgroundColor = color; | ||||
| THIS.fontColor = LimeReport.color('red'); | ||||
| THIS.fontColor = QColor('red'); | ||||
| THIS.font = font; | ||||
|  | ||||
| 'Test'}</content> | ||||
| @@ -128,7 +118,7 @@ THIS.font = font; | ||||
|                   <alignment Value="33" Type="enumAndFlags"/> | ||||
|                   <autoWidth Value="0" Type="enumAndFlags"/> | ||||
|                   <autoHeight Value="0" Type="bool"/> | ||||
|                   <font underline="0" Type="QFont" italic="0" family="Times New Roman" weight="50" pointSize="10" stylename=""/> | ||||
|                   <font stylename="" Type="QFont" pointSize="10" underline="0" family="Times New Roman" weight="50" italic="0"/> | ||||
|                   <backgroundOpacity Value="100" Type="int"/> | ||||
|                   <backgroundMode Value="1" Type="enumAndFlags"/> | ||||
|                   <backgroundColor Value="#ffffff" Type="QColor"/> | ||||
| @@ -142,17 +132,10 @@ 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 Type="Object" ClassName="TextItem"> | ||||
|                 <item ClassName="TextItem" Type="Object"> | ||||
|                   <objectName Type="QString">TextItem3</objectName> | ||||
|                   <geometry Type="QRect" x="878" y="44" width="408" height="86"/> | ||||
|                   <geometry Type="QRect" width="408" x="878" y="44" height="86"/> | ||||
|                   <children Type="Collection"/> | ||||
|                   <zOrder Value="0" Type="qreal"/> | ||||
|                   <borders Value="0" Type="enumAndFlags"/> | ||||
| @@ -168,7 +151,7 @@ THIS.font = font; | ||||
|                   <alignment Value="33" Type="enumAndFlags"/> | ||||
|                   <autoWidth Value="0" Type="enumAndFlags"/> | ||||
|                   <autoHeight Value="0" Type="bool"/> | ||||
|                   <font underline="0" Type="QFont" italic="0" family="Arial" weight="50" pointSize="10" stylename=""/> | ||||
|                   <font stylename="" Type="QFont" pointSize="10" underline="0" family="Arial" weight="50" italic="0"/> | ||||
|                   <backgroundOpacity Value="100" Type="int"/> | ||||
|                   <backgroundMode Value="1" Type="enumAndFlags"/> | ||||
|                   <backgroundColor Value="#ffffff" Type="QColor"/> | ||||
| @@ -182,13 +165,6 @@ 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"/> | ||||
| @@ -202,10 +178,8 @@ 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"/> | ||||
| @@ -223,19 +197,13 @@ 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 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">test</name> | ||||
|           <driver Type="QString">QSQLITE</driver> | ||||
| @@ -244,11 +212,10 @@ 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 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 customers limit 5</queryText> | ||||
| @@ -258,21 +225,18 @@ THIS.font = font; | ||||
|       <subqueries Type="Collection"/> | ||||
|       <subproxies Type="Collection"/> | ||||
|       <variables Type="Collection"> | ||||
|         <item Type="Object" ClassName="LimeReport::VarDesc"> | ||||
|         <item ClassName="LimeReport::VarDesc" Type="Object"> | ||||
|           <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 Type="Object" ClassName="LimeReport::ScriptEngineContext"> | ||||
|     <scriptContext ClassName="LimeReport::ScriptEngineContext" Type="Object"> | ||||
|       <objectName Type="QString"></objectName> | ||||
|       <dialogs Type="Collection"/> | ||||
|       <initScript Type="QString"></initScript> | ||||
|     </scriptContext> | ||||
|     <suppressFieldAndVarError Value="0" Type="bool"/> | ||||
|     <translation Type="Translation"/> | ||||
|   </object> | ||||
| </Report> | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user