7#include "deeplengineconfiguredialog.h"
8#include "deeplengineconfigurewidget.h"
9#include <KLocalizedString>
10#include <QDialogButtonBox>
13DeeplEngineConfigureDialog::DeeplEngineConfigureDialog(
QWidget *parent)
15 , mConfigureWidget(new DeeplEngineConfigureWidget(this))
17 setWindowTitle(
i18nc(
"@title:window",
"Configure Engine"));
18 mConfigureWidget->setObjectName(QStringLiteral(
"mConfigureWidget"));
21 mainLayout->setObjectName(QStringLiteral(
"mainLayout"));
22 mainLayout->addWidget(mConfigureWidget);
25 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
26 mainLayout->addWidget(buttonBox);
31DeeplEngineConfigureDialog::~DeeplEngineConfigureDialog() =
default;
33void DeeplEngineConfigureDialog::setUseFreeLicenceKey(
bool b)
35 mConfigureWidget->setUseFreeLicenceKey(b);
38bool DeeplEngineConfigureDialog::useFreeLicenceKey()
const
40 return mConfigureWidget->useFreeLicenceKey();
43QString DeeplEngineConfigureDialog::apiKey()
const
45 return mConfigureWidget->apiKey();
48void DeeplEngineConfigureDialog::setApiKey(
const QString &key)
50 mConfigureWidget->setApiKey(key);
53#include "moc_deeplengineconfiguredialog.cpp"
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:03 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.