File indexing completed on 2024-11-10 04:48:56

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "statusbarprogresswidget_gui.h"
0008 #include "progresswidget/progressdialog.h"
0009 
0010 #include <QApplication>
0011 #include <QCommandLineParser>
0012 
0013 StatusbarProgressWidget_Gui::StatusbarProgressWidget_Gui(QWidget *parent)
0014     : QWidget(parent)
0015 {
0016     KPIM::ProgressDialog *w = new KPIM::ProgressDialog(this, this);
0017     w->show();
0018     w->setVisible(true);
0019 }
0020 
0021 int main(int argc, char **argv)
0022 {
0023     QApplication app(argc, argv);
0024 
0025     QCommandLineParser parser;
0026     parser.addVersionOption();
0027     parser.addHelpOption();
0028     parser.process(app);
0029     auto w = new StatusbarProgressWidget_Gui;
0030     w->resize(800, 600);
0031     w->show();
0032     app.exec();
0033     delete w;
0034     return 0;
0035 }
0036 
0037 #include "moc_statusbarprogresswidget_gui.cpp"