File indexing completed on 2024-12-22 04:28:24
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "speechtotextaction.h" 0008 #include "textspeechtotext/speechtotextmanager.h" 0009 using namespace TextSpeechToText; 0010 SpeechToTextAction::SpeechToTextAction(QObject *parent) 0011 : QAction{parent} 0012 { 0013 connect(this, &QAction::trigger, this, &SpeechToTextAction::slotClicked); 0014 } 0015 0016 SpeechToTextAction::~SpeechToTextAction() = default; 0017 0018 void SpeechToTextAction::slotClicked() 0019 { 0020 SpeechToTextManager::self()->speechToText(); 0021 } 0022 0023 #include "moc_speechtotextaction.cpp"