File indexing completed on 2024-12-08 04:34:21
0001 /* 0002 SPDX-FileCopyrightText: 2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "e2ecopypassworddialog.h" 0008 #include "e2ecopypasswordwidget.h" 0009 #include <KLocalizedString> 0010 #include <QDialogButtonBox> 0011 #include <QVBoxLayout> 0012 0013 E2eCopyPasswordDialog::E2eCopyPasswordDialog(QWidget *parent) 0014 : QDialog(parent) 0015 , mE2eCopyPasswordWidget(new E2eCopyPasswordWidget(this)) 0016 0017 { 0018 setWindowTitle(i18nc("@title:window", "Copy Password")); 0019 auto mainLayout = new QVBoxLayout(this); 0020 mainLayout->setObjectName(QStringLiteral("mainLayout")); 0021 0022 mE2eCopyPasswordWidget->setObjectName(QStringLiteral("mE2eCopyPasswordWidget")); 0023 mainLayout->addWidget(mE2eCopyPasswordWidget); 0024 0025 auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this); 0026 buttonBox->setObjectName(QStringLiteral("button")); 0027 connect(buttonBox, &QDialogButtonBox::accepted, this, &E2eCopyPasswordDialog::accept); 0028 connect(buttonBox, &QDialogButtonBox::rejected, this, &E2eCopyPasswordDialog::reject); 0029 mainLayout->addWidget(buttonBox); 0030 } 0031 0032 E2eCopyPasswordDialog::~E2eCopyPasswordDialog() = default; 0033 0034 #include "moc_e2ecopypassworddialog.cpp"