File indexing completed on 2025-01-19 04:46:45
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-only 0005 */ 0006 0007 #include "../widgets/mailmergewidget.h" 0008 0009 #include <KAboutData> 0010 #include <KLocalizedString> 0011 #include <QApplication> 0012 #include <QCommandLineParser> 0013 #include <QStandardPaths> 0014 0015 int main(int argc, char **argv) 0016 { 0017 QApplication app(argc, argv); 0018 QStandardPaths::setTestModeEnabled(true); 0019 KAboutData aboutData(QStringLiteral("mailmergewidget_gui"), i18n("MailMergeWidgetTest_Gui"), QStringLiteral("1.0")); 0020 aboutData.setShortDescription(i18n("Test for mailmerge widget")); 0021 QCommandLineParser parser; 0022 KAboutData::setApplicationData(aboutData); 0023 aboutData.setupCommandLine(&parser); 0024 parser.process(app); 0025 aboutData.processCommandLine(&parser); 0026 0027 auto w = new MailMerge::MailMergeWidget(); 0028 w->resize(800, 600); 0029 w->show(); 0030 app.exec(); 0031 delete w; 0032 return 0; 0033 }