Commit a4a84b9a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add widget parent

parent 69aa9861
Pipeline #79107 canceled with stage
......@@ -38,14 +38,14 @@ using namespace Kleo::Crypto;
using namespace Kleo::Crypto::Gui;
DecryptVerifyFilesDialog::DecryptVerifyFilesDialog(const std::shared_ptr<TaskCollection> &coll, QWidget *parent)
: QDialog(parent), m_tasks(coll), m_buttonBox(new QDialogButtonBox)
: QDialog(parent), m_tasks(coll), m_buttonBox(new QDialogButtonBox(this))
{
readConfig();
auto vLay = new QVBoxLayout(this);
auto labels = new QWidget;
auto outputLayout = new QHBoxLayout;
m_outputLocationFNR = new FileNameRequester;
m_outputLocationFNR = new FileNameRequester(this);
auto outLabel = new QLabel(i18n("&Output folder:"));
outLabel->setBuddy(m_outputLocationFNR);
outputLayout->addWidget(outLabel);
......@@ -56,9 +56,9 @@ DecryptVerifyFilesDialog::DecryptVerifyFilesDialog(const std::shared_ptr<TaskCol
m_progressLabelLayout = new QVBoxLayout(labels);
vLay->addWidget(labels);
m_progressBar = new QProgressBar;
m_progressBar = new QProgressBar(this);
vLay->addWidget(m_progressBar);
m_resultList = new ResultListWidget;
m_resultList = new ResultListWidget(this);
vLay->addWidget(m_resultList);
m_tasks = coll;
......
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