Reduced warings.

This commit is contained in:
2025-10-01 11:28:58 +02:00
parent b5f218084b
commit 1e82128ea0
4 changed files with 5 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ void XQChildModel::addModelData( const XQNodePtr& contentRoot )
if( !sheetNode->first_child()->has_children() )
continue;
XQItemList childList =_itemFactory.makeChildRow( list.front(), sheetNode->first_child(), contentEntry );
_itemFactory.makeChildRow( list.front(), sheetNode->first_child(), contentEntry );
}

View File

@@ -156,7 +156,9 @@ XQItemList XQItemFactory::makeRow(const XQNodePtr& sheetNode, const XQNodePtr& c
// __fix! Obacht! das setzt das vorhandensein des Contents voraus!
for( const auto& sheetEntry : sheetNode->children() )
{
list.append( makeItem( sheetEntry, contentNode ) );
}
Q_ASSERT(!list.empty());

View File

@@ -133,7 +133,7 @@ void XQViewModel::initModel(const QString& modelName)
*/
setObjectName( modelName );
// model rootnode finden -> <DocumentTreeModel>
XQNodePtr modelSheet = _itemFactory.findModelSheet( modelName ); // throws
XQNodePtr modelSheet = _itemFactory.findModelSheet( modelName ); // throws
// #1: über alle sections
for( auto& sectionNode : modelSheet->children() )

View File

@@ -11,7 +11,7 @@
<Inverter FriendlyName="@InverterName" InverterID="HM800 02" InverterName="02 HM800 S2 TMax" Manufacturer="HoyMiles" MaxPowerInput="4000" MaxPowerInputChoice="2000;4000;6000" MaxPowerOutput="800" NumStrings="2" Weight="29"/>
<Inverter FriendlyName="@InverterName" InverterID="HM1600 03" InverterName="03 HM1600 S4 TMax" Manufacturer="HoyMiles" MaxPowerInput="4000" MaxPowerInputChoice="2000;4000;6000" MaxPowerOutput="1600" NumStrings="4" Weight="32"/>
<Inverter FriendlyName="@InverterName" InverterID="D12K 04" InverterName="04 HM600 S2 TMax" Manufacturer="Deye" MaxPowerInput="4000" MaxPowerInputChoice="2000;4000;6000" MaxPowerOutput="600" NumStrings="2" Weight="28"/>
<Battery BatteryID="BYD 01" BatteryName="FIRZ!" Capacity="4500" FriendlyName="@BatteryName" Manufacturer="BYD" MaxCurrent="120" MaxVolt="48" Yield="88">
<Battery BatteryID="BYD 01" BatteryName="01 BYD T01 Stackable" Capacity="4500" FriendlyName="@BatteryName" Manufacturer="BYD" MaxCurrent="120" MaxVolt="48" Yield="88">
<AdditionalData DataItem="Image" DataValue="image.png"/>
<AdditionalData DataItem="Manual" DataValue="manual.docx"/>
<AdditionalData DataItem="Certificate" DataValue="certificate.pdf"/>