KTextAddons

lingvaenginedialog.cpp
1/*
2 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "lingvaenginedialog.h"
8#include "lingvaenginewidget.h"
9
10#include <KLocalizedString>
11#include <QDialogButtonBox>
12#include <QVBoxLayout>
13
14LingvaEngineDialog::LingvaEngineDialog(QWidget *parent)
15 : QDialog(parent)
16 , mConfigureWidget(new LingvaEngineWidget(this))
17{
18 setWindowTitle(i18nc("@title:window", "Configure Engine"));
19 mConfigureWidget->setObjectName(QStringLiteral("mConfigureWidget"));
20
21 auto mainLayout = new QVBoxLayout(this);
22 mainLayout->setObjectName(QStringLiteral("mainLayout"));
23 mainLayout->addWidget(mConfigureWidget);
24
26 buttonBox->setObjectName(QStringLiteral("buttonBox"));
27 mainLayout->addWidget(buttonBox);
30}
31
32LingvaEngineDialog::~LingvaEngineDialog() = default;
33
34QString LingvaEngineDialog::serverUrl() const
35{
36 return mConfigureWidget->serverUrl();
37}
38
39void LingvaEngineDialog::setServerUrl(const QString &serverUrl)
40{
41 mConfigureWidget->setServerUrl(serverUrl);
42}
43
44#include "moc_lingvaenginedialog.cpp"
QString i18nc(const char *context, const char *text, const TYPE &arg...)
virtual void accept()
virtual void reject()
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 Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.