7#include "deeplengineconfigurewidget.h"
9#include <KLineEditEventHandler>
11#include <KLocalizedString>
16DeeplEngineConfigureWidget::DeeplEngineConfigureWidget(
QWidget *parent)
18 , mUseFreeLicense(new
QCheckBox(
i18nc(
"@option:check",
"Use Free License Key"), this))
22 mainLayout->setObjectName(QStringLiteral(
"mainLayout"));
23 mainLayout->setContentsMargins({});
25 mUseFreeLicense->setObjectName(QStringLiteral(
"mUseFreeLicense"));
26 mainLayout->addWidget(mUseFreeLicense);
28 mApiKey->setObjectName(QStringLiteral(
"mApiKey"));
29 mApiKey->setClearButtonEnabled(
true);
30 mainLayout->addRow(
i18n(
"Api Key:"), mApiKey);
33DeeplEngineConfigureWidget::~DeeplEngineConfigureWidget() =
default;
35void DeeplEngineConfigureWidget::setUseFreeLicenceKey(
bool b)
40bool DeeplEngineConfigureWidget::useFreeLicenceKey()
const
45QString DeeplEngineConfigureWidget::apiKey()
const
47 return mApiKey->
text();
50void DeeplEngineConfigureWidget::setApiKey(
const QString &key)
55#include "moc_deeplengineconfigurewidget.cpp"
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
void catchReturnKey(QObject *lineEdit)
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.