File indexing completed on 2024-11-10 04:50:07

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "../../../autotests/dummykernel.h"
0008 #include "../filter/dialog/filteractionmissingidentitydialog.h"
0009 #include "../kernel/mailkernel.h"
0010 #include <QApplication>
0011 #include <QStandardPaths>
0012 
0013 int main(int argc, char **argv)
0014 {
0015     QApplication app(argc, argv);
0016     QStandardPaths::setTestModeEnabled(true);
0017     auto kernel = new DummyKernel(nullptr);
0018     CommonKernel->registerKernelIf(kernel); // register KernelIf early, it is used by the Filter classes
0019     CommonKernel->registerSettingsIf(kernel); // SettingsIf is used in FolderTreeWidget
0020 
0021     auto w = new MailCommon::FilterActionMissingIdentityDialog(QStringLiteral("filename"));
0022     w->exec();
0023     app.exec();
0024     delete w;
0025     return 0;
0026 }