diff options
| author | Elvis Angelaccio <[email protected]> | 2019-03-24 11:55:12 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-03-24 11:55:12 +0100 |
| commit | 0b9cb0f7d9b6dc7c8c43a2afafb713f8c28ad0c5 (patch) | |
| tree | d7784a68a253d498ba7f770424cc4ef51f8c22d8 | |
| parent | bff373d598c031cb19bac222f90527d4c4c3d567 (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
| -rw-r--r-- | src/panels/information/phononwidget.cpp | 2 |
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); |
