-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Device List: rework to load per-service delegate files
The _deviceDisplayInfo() in DeviceListPage is problematic as it causes binding updates to all delegates whenever any of the displayed delegate values change. Instead of using this single gigantic function to configure delegates, load per-service QML files that define their own delegate UIs. This improvement also means that custom list items can be provided for individual services, instead of requiring all services to use a similar delegate UI. All delegates should have the same appearance as before, except for the Inverter delegate, which has been fixed to only show the power for the currently active phase. Issue #1338
- Loading branch information
Showing
34 changed files
with
800 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
** Copyright (C) 2023 Victron Energy B.V. | ||
** See LICENSE.txt for license information. | ||
*/ | ||
|
||
import QtQuick | ||
import Victron.VenusOS | ||
|
||
ListQuantityGroupNavigationItem { | ||
id: root | ||
|
||
property BaseDevice device | ||
property BaseDeviceModel sourceModel | ||
|
||
text: device.name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.