KTextAddons

texttospeechvoicecombobox.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7#include "textedittexttospeech_private_export.h"
8#include <QComboBox>
9#include <QVoice>
10namespace TextEditTextToSpeech
11{
12class TEXTEDITTEXTTOSPEECH_TESTS_EXPORT TextToSpeechVoiceComboBox : public QComboBox
13{
14 Q_OBJECT
15public:
16 explicit TextToSpeechVoiceComboBox(QWidget *parent = nullptr);
17 ~TextToSpeechVoiceComboBox() override;
18
19 [[nodiscard]] QVoice currentVoice() const;
20 void setCurrentVoice(const QVoice &voice);
21 void updateVoices(const QVector<QVoice> &voices);
22};
23}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.