configurator/lib/ButtonRow.h
Bernhard Rosenkränzer 32af5c8e93 Service selection dialog
2024-09-03 15:40:08 +02:00

17 lines
314 B
C++

#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;
};