17 lines
314 B
C++
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;
|
|
};
|