Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f7a742b1 authored by Laurent Montel's avatar Laurent Montel 😁

Add test apps

parent bf2ebeee
set(statusbarprogresswidgetgui_SRCS statusbarprogresswidget_gui.cpp)
add_executable(statusbarprogresswidgetgui ${statusbarprogresswidgetgui_SRCS})
target_link_libraries(statusbarprogresswidgetgui
Qt5::Widgets
Qt5::Core
KF5::I18n
KF5::Libkdepim
)
/*
Copyright (C) 2017 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "statusbarprogresswidget_gui.h"
#include "../statusbarprogresswidget.h"
#include <QApplication>
#include <QCommandLineParser>
StatusbarProgressWidget_Gui::StatusbarProgressWidget_Gui(QWidget *parent)
: QWidget(parent)
{
}
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QCommandLineParser parser;
parser.addVersionOption();
parser.addHelpOption();
parser.process(app);
StatusbarProgressWidget_Gui *w = new StatusbarProgressWidget_Gui;
w->resize(800, 600);
w->show();
app.exec();
delete w;
return 0;
}
/*
Copyright (C) 2017 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef STATUSBARPROGRESSWIDGET_GUI_H
#define STATUSBARPROGRESSWIDGET_GUI_H
#include <QWidget>
class StatusbarProgressWidget_Gui : public QWidget
{
Q_OBJECT
public:
explicit StatusbarProgressWidget_Gui(QWidget *parent = nullptr);
~StatusbarProgressWidget_Gui() = default;
};
#endif // STATUSBARPROGRESSWIDGET_GUI_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment