KTextAddons

speechtotextaction.cpp
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "speechtotextaction.h"
8#include "textspeechtotext/speechtotextmanager.h"
9using namespace TextSpeechToText;
10SpeechToTextAction::SpeechToTextAction(QObject *parent)
11 : QAction{parent}
12{
13 connect(this, &QAction::trigger, this, &SpeechToTextAction::slotClicked);
14}
15
16SpeechToTextAction::~SpeechToTextAction() = default;
17
18void SpeechToTextAction::slotClicked()
19{
20 SpeechToTextManager::self()->speechToText();
21}
22
23#include "moc_speechtotextaction.cpp"
void trigger()
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 18 2024 12:19:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.