configurator/lib/ServiceWidget.h

26 lines
445 B
C
Raw Normal View History

2024-09-03 13:40:08 +00:00
#pragma once
#include <QWidget>
2024-09-03 16:59:36 +00:00
#include <QPushButton>
2024-09-03 13:40:08 +00:00
#include <QBoxLayout>
#include <QLabel>
#include "Service.h"
class ServiceWidget:public QWidget {
Q_OBJECT
public:
ServiceWidget(Service &s, QWidget *parent=0);
2024-09-03 16:59:36 +00:00
Service const &service() const { return _s; }
Q_SIGNALS:
void goClicked();
void helpClicked();
2024-09-03 13:40:08 +00:00
protected:
2024-09-03 16:59:36 +00:00
Service _s;
2024-09-03 13:40:08 +00:00
QBoxLayout _layout;
QLabel * _icon;
QLabel * _label;
2024-09-03 16:59:36 +00:00
QPushButton * _go;
QPushButton * _help;
2024-09-03 13:40:08 +00:00
};