mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Use setContentsMargins instead of setMargin
This commit is contained in:
parent
2a90b1c6ef
commit
1012ec37c7
@ -71,7 +71,7 @@ GoToFlowToolBar::GoToFlowToolBar(QWidget *parent)
|
|||||||
|
|
||||||
connect(goToButton, &QPushButton::clicked, this, &GoToFlowToolBar::goTo);
|
connect(goToButton, &QPushButton::clicked, this, &GoToFlowToolBar::goTo);
|
||||||
|
|
||||||
normalLayout->setMargin(0);
|
normalLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
normalLayout->setSpacing(0);
|
normalLayout->setSpacing(0);
|
||||||
normalLayout->addStretch();
|
normalLayout->addStretch();
|
||||||
normalLayout->addWidget(pageHint);
|
normalLayout->addWidget(pageHint);
|
||||||
|
@ -12,7 +12,7 @@ GoToFlowWidget::GoToFlowWidget(QWidget *parent)
|
|||||||
: QWidget(parent)
|
: QWidget(parent)
|
||||||
{
|
{
|
||||||
mainLayout = new QVBoxLayout(this);
|
mainLayout = new QVBoxLayout(this);
|
||||||
mainLayout->setMargin(0);
|
mainLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
mainLayout->setSpacing(0);
|
mainLayout->setSpacing(0);
|
||||||
|
|
||||||
toolBar = new GoToFlowToolBar(this);
|
toolBar = new GoToFlowToolBar(this);
|
||||||
|
@ -7,7 +7,7 @@ NotificationsLabelWidget::NotificationsLabelWidget(QWidget *parent)
|
|||||||
{
|
{
|
||||||
auto layout = new QVBoxLayout;
|
auto layout = new QVBoxLayout;
|
||||||
layout->setSpacing(0);
|
layout->setSpacing(0);
|
||||||
layout->setMargin(0);
|
layout->setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
||||||
setAttribute(Qt::WA_LayoutUsesWidgetRect, true);
|
setAttribute(Qt::WA_LayoutUsesWidgetRect, true);
|
||||||
effect = new QGraphicsOpacityEffect(this);
|
effect = new QGraphicsOpacityEffect(this);
|
||||||
|
@ -14,7 +14,7 @@ YACReader::WhatsNewDialog::WhatsNewDialog(QWidget *parent)
|
|||||||
scrollArea->setContentsMargins(0, 0, 0, 0);
|
scrollArea->setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
||||||
auto mainLayout = new QVBoxLayout(this);
|
auto mainLayout = new QVBoxLayout(this);
|
||||||
mainLayout->setMargin(0);
|
mainLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
auto contentLayout = new QGridLayout();
|
auto contentLayout = new QGridLayout();
|
||||||
|
|
||||||
auto content = new QFrame();
|
auto content = new QFrame();
|
||||||
|
Loading…
Reference in New Issue
Block a user