┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2019-03-24 11:55:12 +0100
committerElvis Angelaccio <[email protected]>2019-03-24 11:55:12 +0100
commit0b9cb0f7d9b6dc7c8c43a2afafb713f8c28ad0c5 (patch)
treed7784a68a253d498ba7f770424cc4ef51f8c22d8 /src
parentbff373d598c031cb19bac222f90527d4c4c3d567 (diff)
[PhononWidget] Fix layout warning
`controlsLayout` should not be a direct child of the widget, since it already has `m_topLayout` as layout. This fixes the following warning: QLayout: Attempting to add QLayout "" to PhononWidget "", which already has a layout
Diffstat (limited to 'src')
-rw-r--r--src/panels/information/phononwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panels/information/phononwidget.cpp b/src/panels/information/phononwidget.cpp
index 95f535713..77e066d37 100644
--- a/src/panels/information/phononwidget.cpp
+++ b/src/panels/information/phononwidget.cpp
@@ -106,7 +106,7 @@ void PhononWidget::showEvent(QShowEvent *event)
m_topLayout = new QVBoxLayout(this);
m_topLayout->setContentsMargins(0, 0, 0, 0);
- QHBoxLayout *controlsLayout = new QHBoxLayout(this);
+ QHBoxLayout *controlsLayout = new QHBoxLayout();
controlsLayout->setContentsMargins(0, 0, 0, 0);
controlsLayout->setSpacing(0);