mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
[InformationPanel] Remove obsolete intermediate wrapper widget/layout
The Baloo::MetaDataWidget is now able to stretch in a meaningful way by itself, remove the wrapper. Summary: Depends on D20667 Reviewers: #dolphin, #baloo, #frameworks, ngraham, astippich, elvisangelaccio Reviewed By: #dolphin, #baloo, ngraham, elvisangelaccio Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D20668
This commit is contained in:
parent
c2da7e9efe
commit
832fd09655
|
@ -107,18 +107,8 @@ InformationPanelContent::InformationPanelContent(QWidget* parent) :
|
|||
m_metaDataWidget->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
|
||||
m_metaDataWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
|
||||
|
||||
// Encapsulate the MetaDataWidget inside a container that has a dummy widget
|
||||
// at the bottom. This prevents that the meta data widget gets vertically stretched
|
||||
// in the case where the height of m_metaDataArea > m_metaDataWidget.
|
||||
QWidget* metaDataWidgetContainer = new QWidget(parent);
|
||||
QVBoxLayout* containerLayout = new QVBoxLayout(metaDataWidgetContainer);
|
||||
containerLayout->setContentsMargins(0, 0, 0, 0);
|
||||
containerLayout->setSpacing(0);
|
||||
containerLayout->addWidget(m_metaDataWidget);
|
||||
containerLayout->addStretch();
|
||||
|
||||
m_metaDataArea = new QScrollArea(parent);
|
||||
m_metaDataArea->setWidget(metaDataWidgetContainer);
|
||||
m_metaDataArea->setWidget(m_metaDataWidget);
|
||||
m_metaDataArea->setWidgetResizable(true);
|
||||
m_metaDataArea->setFrameShape(QFrame::NoFrame);
|
||||
|
||||
|
|
Loading…
Reference in a new issue