7#include "speechtotextconfigurewidget.h"
8#include "speechtotextcomboboxwidget.h"
9#include "speechtotextselectdevicewidget.h"
10#include <KConfigGroup>
11#include <KLocalizedString>
12#include <KSharedConfig>
15using namespace TextSpeechToText;
17SpeechToTextConfigureWidget::SpeechToTextConfigureWidget(
QWidget *parent)
19 , mSpeechToTextComboBox(new SpeechToTextComboBoxWidget(this))
20 , mSpeechToTextDevice(new SpeechToTextSelectDeviceWidget(this))
23 mainLayout->setObjectName(QStringLiteral(
"mainLayout"));
24 mainLayout->setContentsMargins({});
26 mSpeechToTextDevice->setObjectName(QStringLiteral(
"mSpeechToTextDevice"));
27 mainLayout->addWidget(mSpeechToTextDevice);
29 mSpeechToTextComboBox->setObjectName(QStringLiteral(
"mSpeechToTextComboBox"));
30 mainLayout->addWidget(mSpeechToTextComboBox);
31 mSpeechToTextComboBox->fillEngine();
34SpeechToTextConfigureWidget::~SpeechToTextConfigureWidget() =
default;
36void SpeechToTextConfigureWidget::loadSettings()
38 mSpeechToTextComboBox->load();
39 mSpeechToTextDevice->loadSettings();
42void SpeechToTextConfigureWidget::saveSettings()
44 mSpeechToTextComboBox->save();
45 mSpeechToTextDevice->saveSettings();
48#include "moc_speechtotextconfigurewidget.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:49:44 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.