FemaLocalSoftware/sensorlayout.h

28 lines
641 B
C
Raw Normal View History

2024-11-28 08:02:59 +00:00
#ifndef SENSORLAYOUT_H
#define SENSORLAYOUT_H
#include <QLayout>
#include <QRect>
#include <QWidgetItem>
class SensorLayout : public QLayout
{
public:
SensorLayout(QWidget *parent = nullptr);
~SensorLayout();
void addItem(QLayoutItem *item) override;
QSize sizeHint() const override;
QSize minimumSize() const override;
int count() const override;
2024-11-28 18:34:00 +00:00
QLayoutItem *itemAt(int index) const override;
QLayoutItem *takeAt(int index) override;
2024-11-28 08:02:59 +00:00
void setGeometry(const QRect &rect) override;
2024-11-28 18:34:00 +00:00
2024-11-28 08:02:59 +00:00
private:
2024-11-28 18:34:00 +00:00
QList<QLayoutItem *> items;
2024-11-28 08:02:59 +00:00
int spacing = 20;
};
#endif // SENSORLAYOUT_H