Commit b3e2584f authored by Laurent Montel's avatar Laurent Montel 😁

Add margins

parent bae2ee5e
Pipeline #38365 passed with stage
in 11 minutes and 39 seconds
......@@ -47,7 +47,6 @@ void ImportImapSettingFinishPageTest::shouldHaveDefaultValue()
QVBoxLayout *mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
}
QTEST_MAIN(ImportImapSettingFinishPageTest)
......@@ -41,7 +41,6 @@ void ImportImapSettingNoFoundPageTest::shouldHaveDefaultValue()
QVBoxLayout *mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
}
QTEST_MAIN(ImportImapSettingNoFoundPageTest)
......@@ -45,7 +45,6 @@ void ImportImapSettingProgressPageTest::shouldHaveDefaultValue()
QVBoxLayout *mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
}
QTEST_MAIN(ImportImapSettingProgressPageTest)
......@@ -47,7 +47,6 @@ void ImportImapSettingSearchPageTest::shouldHaveDefaultValue()
QVBoxLayout *mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
}
void ImportImapSettingSearchPageTest::shouldAddCheckPrograms()
......
......@@ -28,7 +28,6 @@ ImportImapSettingFinishPage::ImportImapSettingFinishPage(QWidget *parent)
{
QVBoxLayout *mainlayout = new QVBoxLayout(this);
mainlayout->setObjectName(QStringLiteral("mainlayout"));
mainlayout->setContentsMargins(0, 0, 0, 0);
QLabel *label = new QLabel(i18n("IMAP settings were imported:"), this);
label->setObjectName(QStringLiteral("label"));
......
......@@ -27,7 +27,6 @@ ImportImapSettingNoFoundPage::ImportImapSettingNoFoundPage(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
QLabel *lab = new QLabel(i18n("No settings found to import."));
QFont font = lab->font();
......
......@@ -29,7 +29,6 @@ ImportImapSettingProgressPage::ImportImapSettingProgressPage(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
mProgressTextEdit = new QTextEdit(this);
mProgressTextEdit->setObjectName(QStringLiteral("textedit"));
mProgressTextEdit->setReadOnly(true);
......
......@@ -29,7 +29,6 @@ ImportImapSettingSearchPage::ImportImapSettingSearchPage(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
QLabel *label = new QLabel(i18n("Please select the program from which you like to import IMAP settings:"), this);
label->setObjectName(QStringLiteral("label"));
mainLayout->addWidget(label);
......
......@@ -35,7 +35,7 @@ ServerSieveSettingsDialog::ServerSieveSettingsDialog(QWidget *parent)
mServerSieveSettings = new ServerSieveSettings;
connect(mServerSieveSettings, &ServerSieveSettings::enableOkButton, this, &ServerSieveSettingsDialog::slotEnableButtonOk);
lay->addWidget(mServerSieveSettings);
lay->setContentsMargins(0, 0, 0, 0);
lay->setContentsMargins({});
w->setLayout(lay);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(w);
......
......@@ -84,7 +84,7 @@ SieveEditorConfigureDialog::SieveEditorConfigureDialog(QWidget *parent)
mUserFeedbackWidget = new KUserFeedback::FeedbackConfigWidget(this);
QHBoxLayout *userFeedBackLayout = new QHBoxLayout(userFeedBackWidget);
userFeedBackLayout->setContentsMargins(0, 0, 0, 0);
userFeedBackLayout->setContentsMargins({});
userFeedBackLayout->addWidget(mUserFeedbackWidget);
mUserFeedbackWidget->setFeedbackProvider(UserFeedBackManager::self()->userFeedbackProvider());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment