Commit 69f69c15 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Revert "Add widget parent"

This reverts commit a4a84b9a.

I'm sorry, but this change breaks the tab order in the dialog. In fact,
it makes it impossible to reach any widgets except for the two dialog
buttons with the Tab key. I also don't see why passing a parent to the
constructor should be necessary. All widgets are added to a layout and
the layout takes care of setting the correct parent widget of the widgets.
parent a4a84b9a
Pipeline #79111 passed with stage
in 15 minutes and 3 seconds
......@@ -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(this))
: QDialog(parent), m_tasks(coll), m_buttonBox(new QDialogButtonBox)
auto vLay = new QVBoxLayout(this);
auto labels = new QWidget;
auto outputLayout = new QHBoxLayout;
m_outputLocationFNR = new FileNameRequester(this);
m_outputLocationFNR = new FileNameRequester;
auto outLabel = new QLabel(i18n("&Output folder:"));
......@@ -56,9 +56,9 @@ DecryptVerifyFilesDialog::DecryptVerifyFilesDialog(const std::shared_ptr<TaskCol
m_progressLabelLayout = new QVBoxLayout(labels);
m_progressBar = new QProgressBar(this);
m_progressBar = new QProgressBar;
m_resultList = new ResultListWidget(this);
m_resultList = new ResultListWidget;
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