File indexing completed on 2024-05-12 16:15:57
0001 /* 0002 SPDX-FileCopyrightText: 2014-2023 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "texttospeechconfiggui.h" 0008 #include "texttospeechconfigwidget.h" 0009 #include <QApplication> 0010 #include <QCommandLineParser> 0011 #include <QHBoxLayout> 0012 #include <QStandardPaths> 0013 0014 TextToSpeechConfigGui::TextToSpeechConfigGui(QWidget *parent) 0015 : QWidget(parent) 0016 { 0017 auto hbox = new QHBoxLayout(this); 0018 auto widget = new TextEditTextToSpeech::TextToSpeechConfigWidget(this); 0019 widget->initializeSettings(); 0020 hbox->addWidget(widget); 0021 } 0022 0023 TextToSpeechConfigGui::~TextToSpeechConfigGui() = default; 0024 0025 int main(int argc, char **argv) 0026 { 0027 QApplication app(argc, argv); 0028 QStandardPaths::setTestModeEnabled(true); 0029 QCommandLineParser parser; 0030 parser.addVersionOption(); 0031 parser.addHelpOption(); 0032 parser.process(app); 0033 0034 auto w = new TextToSpeechConfigGui; 0035 0036 w->show(); 0037 app.exec(); 0038 delete w; 0039 return 0; 0040 } 0041 0042 #include "moc_texttospeechconfiggui.cpp"