projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hide the configure device button when the popup would be empty
[pulseview.git]
/
pv
/
prop
/
binding
/
binding.cpp
diff --git
a/pv/prop/binding/binding.cpp
b/pv/prop/binding/binding.cpp
index 28a47099144eb8d50883a8d602c2f2d210a56c78..90e5214e86c08dad3eb208c5b3ccf873e609662a 100644
(file)
--- a/
pv/prop/binding/binding.cpp
+++ b/
pv/prop/binding/binding.cpp
@@
-26,7
+26,7
@@
#include "binding.h"
#include "binding.h"
-using
namespace boost
;
+using
boost::shared_ptr
;
namespace pv {
namespace prop {
namespace pv {
namespace prop {
@@
-45,7
+45,8
@@
void Binding::commit()
}
}
}
}
-void Binding::add_properties_to_form(QFormLayout *layout) const
+void Binding::add_properties_to_form(QFormLayout *layout,
+ bool auto_commit) const
{
assert(layout);
{
assert(layout);
@@
-53,16
+54,18
@@
void Binding::add_properties_to_form(QFormLayout *layout) const
{
assert(p);
const QString label = p->labeled_widget() ? QString() : p->name();
{
assert(p);
const QString label = p->labeled_widget() ? QString() : p->name();
- layout->addRow(label, p->get_widget(layout->parentWidget()));
+ layout->addRow(label, p->get_widget(layout->parentWidget(),
+ auto_commit));
}
}
}
}
-QWidget* Binding::get_property_form(QWidget *parent) const
+QWidget* Binding::get_property_form(QWidget *parent,
+ bool auto_commit) const
{
QWidget *const form = new QWidget(parent);
QFormLayout *const layout = new QFormLayout(form);
form->setLayout(layout);
{
QWidget *const form = new QWidget(parent);
QFormLayout *const layout = new QFormLayout(form);
form->setLayout(layout);
- add_properties_to_form(layout);
+ add_properties_to_form(layout
, auto_commit
);
return form;
}
return form;
}