Merge pull request #5720 from Ultimaker/add_id_for_custom_profiles

Added id to the profile page in preferences to identify custom profiles
This commit is contained in:
Diego Prado Gesto 2019-05-09 16:27:48 +02:00 committed by GitHub
commit f0ccb2504f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -420,6 +420,9 @@ Item
width: profileScrollView.width width: profileScrollView.width
height: childrenRect.height height: childrenRect.height
// Added this property to identify custom profiles in automated system tests (Squish)
property bool isReadOnly: model.is_read_only
property bool isCurrentItem: ListView.isCurrentItem property bool isCurrentItem: ListView.isCurrentItem
color: isCurrentItem ? palette.highlight : (model.index % 2) ? palette.base : palette.alternateBase color: isCurrentItem ? palette.highlight : (model.index % 2) ? palette.base : palette.alternateBase