Index: sources/gui/qml/components/HeaderBarPopup.qml =================================================================== diff -u -r51c91d35b3d0d1acac4dfccf6057d3949f302448 -r3ee91a030e9affe0a50acdee33520c985c05d779 --- sources/gui/qml/components/HeaderBarPopup.qml (.../HeaderBarPopup.qml) (revision 51c91d35b3d0d1acac4dfccf6057d3949f302448) +++ sources/gui/qml/components/HeaderBarPopup.qml (.../HeaderBarPopup.qml) (revision 3ee91a030e9affe0a50acdee33520c985c05d779) @@ -5,18 +5,8 @@ import "qrc:/components" ModalDialog { id: _root - property int type: -1 + signal adjustPosition () - signal adjustPosition (var type) - - enum Button { Prescription, - WiFi, - BlueTooth, - CloudSync, - Storage, - Settings, - Information } - implicitWidth : contentItem.implicitWidth + padding * 2 // Auto-size to content implicitHeight : contentItem.implicitHeight + padding * 2 width : implicitWidth @@ -28,5 +18,5 @@ backgroundColor : "#D2D6DB" showDropShadow : true - onImplicitWidthChanged: Qt.callLater(function() { adjustPosition(type) }) + onImplicitWidthChanged: Qt.callLater(function() { adjustPosition() }) }