configurator/lib/ButtonRow.h

17 lines
314 B
C
Raw Normal View History

2024-09-03 13:40:08 +00:00
#pragma once
#include <QWidget>
#include <QBoxLayout>
#include <QAbstractButton>
class ButtonRow:public QWidget {
Q_OBJECT
public:
ButtonRow(QWidget *parent=0, QBoxLayout::Direction dir=QBoxLayout::LeftToRight);
void add(QAbstractButton *btn) {
_layout.addWidget(btn);
}
protected:
QBoxLayout _layout;
};