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

0001 /*
0002   SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-only
0005 */
0006 
0007 #include "kmfilterdialogtestgui.h"
0008 #include "../../../autotests/dummykernel.h"
0009 #include "../kernel/mailkernel.h"
0010 #include "../kmfilterdialog.h"
0011 
0012 #include <QApplication>
0013 
0014 int main(int argc, char **argv)
0015 {
0016     QApplication app(argc, argv);
0017     QStandardPaths::setTestModeEnabled(true);
0018     auto kernel = new DummyKernel(nullptr);
0019     CommonKernel->registerKernelIf(kernel); // register KernelIf early, it is used by the Filter classes
0020     CommonKernel->registerSettingsIf(kernel); // SettingsIf is used in FolderTreeWidget
0021 
0022     QList<KActionCollection *> lstAction;
0023     auto dlg = new MailCommon::KMFilterDialog(lstAction, nullptr, true);
0024     dlg->resize(800, 600);
0025     dlg->show();
0026     const int ret = app.exec();
0027     return ret;
0028 }