File indexing completed on 2024-07-21 04:35:18

0001 /*
0002     SPDX-FileCopyrightText: 2019 Ralf Habacker ralf.habacker @freenet.de
0003     SPDX-FileCopyrightText: 2019 Thomas Baumgart tbaumgart @kde.org
0004 
0005     This file is part of libalkimia.
0006 
0007     SPDX-License-Identifier: LGPL-2.1-or-later
0008 */
0009 
0010 #include "alkonlinequoteswidget.h"
0011 #include "alkonlinequotesprofile.h"
0012 #include "alkonlinequotesprofilemanager.h"
0013 
0014 #include <QApplication>
0015 #include <QDialog>
0016 #include <QGridLayout>
0017 
0018 int main(int argc, char *argv[])
0019 {
0020     QApplication app(argc, argv);
0021 
0022     AlkOnlineQuotesProfile profile("no-config-file", AlkOnlineQuotesProfile::Type::None);
0023     AlkOnlineQuotesProfileManager::instance().addProfile(&profile);
0024 
0025     QDialog dialog;
0026     QGridLayout *layout = new QGridLayout;
0027     layout->addWidget(new AlkOnlineQuotesWidget);
0028     dialog.setLayout(layout);
0029     dialog.show();
0030     app.exec();
0031 }