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 "filter/invalidfilters/invalidfilterdialog.h" 0008 0009 #include <QApplication> 0010 0011 int main(int argc, char **argv) 0012 { 0013 QApplication app(argc, argv); 0014 0015 auto w = new MailCommon::InvalidFilterDialog(); 0016 QList<MailCommon::InvalidFilterInfo> infoLst; 0017 for (int i = 0; i < 10; ++i) { 0018 MailCommon::InvalidFilterInfo info; 0019 info.setInformation(QStringLiteral("information %1").arg(i)); 0020 info.setName(QStringLiteral("name %1").arg(i)); 0021 infoLst << info; 0022 } 0023 w->setInvalidFilters(infoLst); 0024 w->resize(800, 600); 0025 w->show(); 0026 app.exec(); 0027 delete w; 0028 return 0; 0029 }