aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help/searchwidget.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-08-29 10:36:01 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-09-02 13:01:07 +0000
commit8e31932c295b158805410a9991bef8edc869d21b (patch)
treef12f6fcdccecf70760b0ae9c1fedaefef5e5a807 /src/plugins/help/searchwidget.cpp
parent228f5fc319e33ed32cb1f997c65b68b5ddc18fd7 (diff)
Remove usages of deprecated APIs of QLayout
Replaced: QLayout::setMargin() -> QLayout::setContentsMargins() QLayout::margin() -> QLayout::getContentsMargins() Task-number: QTBUG-76491 Change-Id: If28ef6910b3afe5d04e4746b74f9362a3e3b3c8e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/help/searchwidget.cpp')
-rw-r--r--src/plugins/help/searchwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/help/searchwidget.cpp b/src/plugins/help/searchwidget.cpp
index fe03f6e0e68..4d893e15d21 100644
--- a/src/plugins/help/searchwidget.cpp
+++ b/src/plugins/help/searchwidget.cpp
@@ -99,7 +99,7 @@ void SearchWidget::showEvent(QShowEvent *event)
{
if (!event->spontaneous() && !searchEngine) {
auto vLayout = new QVBoxLayout(this);
- vLayout->setMargin(0);
+ vLayout->setContentsMargins(0, 0, 0, 0);
vLayout->setSpacing(0);
searchEngine = new QHelpSearchEngine(&LocalHelpManager::helpEngine(), this);
@@ -109,7 +109,7 @@ void SearchWidget::showEvent(QShowEvent *event)
m_queryWidget = searchEngine->queryWidget();
QLayout *tbLayout = new QVBoxLayout();
tbLayout->setSpacing(6);
- tbLayout->setMargin(4);
+ tbLayout->setContentsMargins(4, 4, 4, 4);
tbLayout->addWidget(m_queryWidget);
m_indexingDocumentationLabel = new QLabel(tr("Indexing Documentation"), toolbar);
m_indexingDocumentationLabel->hide();
@@ -120,7 +120,7 @@ void SearchWidget::showEvent(QShowEvent *event)
toolbar2->setSingleRow(false);
tbLayout = new QVBoxLayout();
tbLayout->setSpacing(0);
- tbLayout->setMargin(0);
+ tbLayout->setContentsMargins(0, 0, 0, 0);
tbLayout->addWidget(resultWidget = searchEngine->resultWidget());
toolbar2->setLayout(tbLayout);