1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
/*
SPDX-FileCopyrightText: 2014-2026 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "texttospeechconfiggui.h"
#include "texttospeechconfigwidget.h"
#include <QApplication>
#include <QCommandLineParser>
#include <QHBoxLayout>
#include <QStandardPaths>
TextToSpeechConfigGui::TextToSpeechConfigGui(QWidget *parent)
: QWidget(parent)
{
auto hbox = new QHBoxLayout(this);
auto widget = new TextEditTextToSpeech::TextToSpeechConfigWidget(this);
widget->initializeSettings();
hbox->addWidget(widget);
}
TextToSpeechConfigGui::~TextToSpeechConfigGui() = default;
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
QCommandLineParser parser;
parser.addVersionOption();
parser.addHelpOption();
parser.process(app);
auto w = new TextToSpeechConfigGui;
w->show();
app.exec();
delete w;
return 0;
}
#include "moc_texttospeechconfiggui.cpp"
|