Commit 60cb6b23 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Do not pass the main widget as parent to sub-layouts

Luckily, Qt refuses to replace the existing layout of a widget, but it's
confusing for the reader of the code, if a parent is passed to a layout,
and it makes Qt log warnings.

GnuPG-bug-id: 6046
parent 433ac731
......@@ -276,7 +276,7 @@ public:
mFprLabel = new QLabel{q};
mainLay->addWidget(mFprLabel);
auto secKeyLay = new QHBoxLayout{q};
auto secKeyLay = new QHBoxLayout;
secKeyLay->addWidget(new QLabel(i18n("Certify with:")));
mSecKeySelect = new KeySelectionCombo{/* secretOnly= */true, q};
......@@ -309,14 +309,14 @@ public:
auto expander = new AnimatedExpander{i18n("Advanced"), q};
mainLay->addWidget(expander);
auto advLay = new QVBoxLayout{q};
auto advLay = new QVBoxLayout;
mExportCB = new QCheckBox{q};
mExportCB->setText(i18n("Certify for everyone to see (exportable)"));
advLay->addWidget(mExportCB);
{
auto layout = new QHBoxLayout{q};
auto layout = new QHBoxLayout;
mPublishCB = new QCheckBox{q};
mPublishCB->setText(i18n("Publish on keyserver afterwards"));
......@@ -329,7 +329,7 @@ public:
}
{
auto tagsLay = new QHBoxLayout{q};
auto tagsLay = new QHBoxLayout;
mTagsLE = new QLineEdit{q};
mTagsLE->setPlaceholderText(i18n("Tags"));
......@@ -347,7 +347,7 @@ public:
}
{
auto layout = new QHBoxLayout{q};
auto layout = new QHBoxLayout;
mExpirationCheckBox = new QCheckBox{q};
mExpirationCheckBox->setText(i18n("Expiration:"));
......@@ -383,7 +383,7 @@ public:
}
{
auto layout = new QHBoxLayout{q};
auto layout = new QHBoxLayout;
mTrustSignatureCB = new QCheckBox{q};
mTrustSignatureCB->setText(i18n("Certify as trusted introducer"));
......@@ -401,7 +401,7 @@ public:
advLay->addLayout(layout);
}
{
auto layout = new QHBoxLayout{q};
auto layout = new QHBoxLayout;
mTrustSignatureDomainLE = new QLineEdit{q};
mTrustSignatureDomainLE->setPlaceholderText(i18n("Domain"));
......
Supports Markdown
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