pv::widgets::DecoderGroupBox *const group =
new pv::widgets::DecoderGroupBox(
- QString::fromUtf8(decoder->name), nullptr, decoder_deletable);
+ QString::fromUtf8(decoder->name),
+ tr("%1:\n%2").arg(QString::fromUtf8(decoder->longname),
+ QString::fromUtf8(decoder->desc)),
+ nullptr, decoder_deletable);
group->set_decoder_visible(dec->shown());
if (decoder_deletable) {
namespace pv {
namespace widgets {
-DecoderGroupBox::DecoderGroupBox(QString title, QWidget *parent, bool isDeletable) :
+DecoderGroupBox::DecoderGroupBox(QString title, QString tooltip, QWidget *parent, bool isDeletable) :
QWidget(parent),
layout_(new QGridLayout),
show_hide_button_(QIcon(":/icons/decoder-shown.svg"), QString(), this)
layout_->setContentsMargins(0, 0, 0, 0);
setLayout(layout_);
- layout_->addWidget(new QLabel(QString("<h3>%1</h3>").arg(title)), 0, 0);
+ auto *lbl = new QLabel(QString("<h3>%1</h3>").arg(title));
+ lbl->setToolTip(tooltip);
+ layout_->addWidget(lbl, 0, 0);
layout_->setColumnStretch(0, 1);
QHBoxLayout *const toolbar = new QHBoxLayout;
Q_OBJECT
public:
- DecoderGroupBox(QString title, QWidget *parent = nullptr,
- bool isDeletable = true);
+ DecoderGroupBox(QString title, QString tooltip,
+ QWidget *parent = nullptr, bool isDeletable = true);
void add_layout(QLayout *layout);