File indexing completed on 2024-04-21 15:05:26

0001 /*
0002     SPDX-FileCopyrightText: 2017 Montel Laurent <montel@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include <QVBoxLayout>
0008 #include <QWidget>
0009 
0010 #include <QApplication>
0011 #include <QCommandLineParser>
0012 
0013 #include <KPasswordLineEdit>
0014 
0015 int main(int argc, char *argv[])
0016 {
0017     QApplication app(argc, argv);
0018     QCommandLineParser parser;
0019     parser.addVersionOption();
0020     parser.addHelpOption();
0021     parser.process(app);
0022 
0023     QWidget *w = new QWidget;
0024     QVBoxLayout *vbox = new QVBoxLayout(w);
0025 
0026     KPasswordLineEdit *passwordLineEdit = new KPasswordLineEdit(w);
0027     vbox->addWidget(passwordLineEdit);
0028     vbox->addStretch();
0029 
0030     w->resize(400, 400);
0031     w->show();
0032 
0033     return app.exec();
0034 }