diff --git a/applet/contents/ui/ListItemBase.qml b/applet/contents/ui/ListItemBase.qml --- a/applet/contents/ui/ListItemBase.qml +++ b/applet/contents/ui/ListItemBase.qml @@ -39,45 +39,18 @@ property alias icon: clientIcon.source property string type - anchors { - left: parent.left; - right: parent.right; - } - checked: dropArea.containsDrag opacity: (draggedStream && draggedStream.deviceIndex == Index) ? 0.3 : 1.0 ListView.delayRemove: dragArea.dragActive - DragAndDrop.DropArea { - id: dropArea - anchors.fill: parent - enabled: draggedStream - - onDragEnter: { - if (draggedStream.deviceIndex == Index) { - event.ignore(); - } - } - - onDrop: { - draggedStream.deviceIndex = Index; - } - } - - MouseArea { - anchors.fill: parent - acceptedButtons: Qt.MiddleButton - onClicked: Muted = !Muted - } - - ColumnLayout { - property int maximumWidth: parent.width - width: maximumWidth - Layout.maximumWidth: maximumWidth + Item { + width: parent.width + height: rowLayout.height RowLayout { - Layout.fillWidth: true + id: rowLayout + width: parent.width spacing: units.smallSpacing PlasmaCore.IconItem { @@ -222,5 +195,27 @@ } } } + + DragAndDrop.DropArea { + id: dropArea + anchors.fill: parent + enabled: draggedStream + + onDragEnter: { + if (draggedStream.deviceIndex == Index) { + event.ignore(); + } + } + + onDrop: { + draggedStream.deviceIndex = Index; + } + } + + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.MiddleButton + onClicked: Muted = !Muted + } } }