Index: sources/gui/qml/pages/treatment/TreatmentTrends.qml =================================================================== diff -u -rc2f474ff07c98aa350c445a2474976a3cf985f40 -rbecdb453874007323459a9afe9fe581b6c158902 --- sources/gui/qml/pages/treatment/TreatmentTrends.qml (.../TreatmentTrends.qml) (revision c2f474ff07c98aa350c445a2474976a3cf985f40) +++ sources/gui/qml/pages/treatment/TreatmentTrends.qml (.../TreatmentTrends.qml) (revision becdb453874007323459a9afe9fe581b6c158902) @@ -15,7 +15,7 @@ // Qt import QtQuick 2.12 -import QtGraphicalEffects 1.12 +// import QtGraphicalEffects 1.12 /* Qt6 Port: replaced the above import with the following one: import QtQuick.Effects */ @@ -33,6 +33,7 @@ objectName: "_TreatmentTrends" property alias isParamExpanded: _paramArea.isExpanded showCreateRxHeaderButton: true + showHeaderMenu : true onVisibleChanged: { _paramList.positionViewAtBeginning() @@ -46,7 +47,7 @@ readonly property int labelWidth : 300 readonly property int scrollButtonWidth : 40 readonly property int paramAreaRightMargin : 5 - readonly property int paramWidth : + readonly property int paramWidth : (_root.width - Variables.defaultMargin - labelWidth - scrollButtonWidth - paramAreaRightMargin - _expandButton.width) / 7 readonly property int historyTimeWidth : 50 } @@ -58,21 +59,25 @@ height : _private.topHeaderHeight radius : 10 color : Colors.treatmentSectionHeader - layer { - enabled: true - effect: DropShadow { id: _topHeaderShadow - objectName : "_topHeaderShadow" - horizontalOffset: 2 - verticalOffset : 2 - } + // layer { + // enabled: true + // effect: DropShadow { id: _topHeaderShadow + // objectName : "_topHeaderShadow" + // horizontalOffset: 2 + // verticalOffset : 2 + // radius : 12 + // samples : 32 + // color : "#50000000" + // source : _header + // } /* Qt6 Port: replace the above DropShadow with the following RectangularShadow: effect: RectangularShadow { id: _topHeaderShadow objectName : "_topHeaderShadow" radius : 12 color : "#50000000" } */ - } + // } Text { id: _text objectName : "_text" @@ -181,7 +186,7 @@ width : _private.paramWidth height : _private.cellHeight enabled : true - + Text { id: _valueText objectName : "_valueText" anchors.centerIn : parent @@ -354,7 +359,7 @@ objectName: "_paramList" readonly property int visibleParamCount: _paramArea.isExpanded ? 7 : 5 readonly property int modelCount: _paramList.count ?? 0 - + anchors { fill : parent rightMargin : (Math.max(0, visibleParamCount - _paramList.count) * _private.paramWidth)