mirror of
https://github.com/modelec/ihm.git
synced 2026-01-18 16:47:32 +01:00
32 lines
591 B
C++
32 lines
591 B
C++
#pragma once
|
|
#include <QHBoxLayout>
|
|
#include <QLabel>
|
|
#include <QWidget>
|
|
#include <QCheckBox>
|
|
#include <QPushButton>
|
|
|
|
class OneItemPreparation : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
OneItemPreparation(const QString& title, const QString& buttonText, QWidget* parent = nullptr);
|
|
|
|
void setChecked(bool checked) const;
|
|
|
|
void toggleChecked() const;
|
|
|
|
[[nodiscard]] bool isChecked() const;
|
|
|
|
signals:
|
|
void buttonClicked();
|
|
|
|
public slots:
|
|
void onButtonClicked();
|
|
|
|
private:
|
|
QHBoxLayout* mainLayout;
|
|
QLabel* item;
|
|
QCheckBox* checkBox;
|
|
QPushButton* button;
|
|
};
|