1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#ifndef MULTI_BIT_FIELD_WIDGET_H_20191119_
#define MULTI_BIT_FIELD_WIDGET_H_20191119_
#include "ValueField.h"
namespace ODbgRegisterView {
struct BitFieldDescription;
class MultiBitFieldWidget final : public ValueField {
Q_OBJECT
public:
MultiBitFieldWidget(const QModelIndex &index, const BitFieldDescription &bfd, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
public Q_SLOTS:
void setValue(int value);
void adjustToData() override;
private:
QList<QAction *> valueActions_;
std::function<bool(unsigned, unsigned)> equal_;
};
}
#endif
|