File indexing completed on 2025-01-05 04:58:21

0001 /*
0002     This file is part of libkdepim.
0003 
0004     SPDX-FileCopyrightText: 2004 Daniel Molkentin <danimo@klaralvdalens-datakonsult.se>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 #include <QVBoxLayout>
0009 #include <QWidget>
0010 
0011 #include <PimCommonAkonadi/AddresseeLineEdit>
0012 
0013 #include <QApplication>
0014 #include <QCommandLineParser>
0015 #include <QStandardPaths>
0016 
0017 int main(int argc, char *argv[])
0018 {
0019     QApplication app(argc, argv);
0020     QStandardPaths::setTestModeEnabled(true);
0021     QCommandLineParser parser;
0022     parser.addVersionOption();
0023     parser.addHelpOption();
0024     parser.process(app);
0025 
0026     auto w = new QWidget;
0027     auto vbox = new QVBoxLayout(w);
0028 
0029     auto kale1 = new PimCommon::AddresseeLineEdit(nullptr);
0030     vbox->addWidget(kale1);
0031     auto kale2 = new PimCommon::AddresseeLineEdit(nullptr);
0032     vbox->addWidget(kale2);
0033     vbox->addStretch();
0034 
0035     w->resize(400, 400);
0036     w->show();
0037 
0038     return app.exec();
0039 }