pv/view/header.h
pv/view/logicsignal.h
pv/view/marginwidget.h
+ pv/view/rowitem.h
pv/view/ruler.h
pv/view/selectableitem.h
pv/view/signal.h
class RowItem : public SelectableItem
{
+ Q_OBJECT
+
public:
/**
* Constructor.
public:
virtual void hover_point_changed();
+Q_SIGNALS:
+ void appearance_changed();
+
protected:
pv::view::RowItemOwner *_owner;
void Signal::enable(bool enable)
{
_channel->set_enabled(enable);
- visibility_changed();
+ appearance_changed();
}
shared_ptr<Channel> Signal::channel() const
void Trace::on_text_changed(const QString &text)
{
set_name(text);
- text_changed();
+ appearance_changed();
}
void Trace::on_colour_changed(const QColor &colour)
{
set_colour(colour);
- colour_changed();
+ appearance_changed();
}
} // namespace view
void on_popup_closed();
-Q_SIGNALS:
- void visibility_changed();
- void text_changed();
- void colour_changed();
-
protected:
QString _name;
QColor _colour;
{
for (shared_ptr<RowItem> r : _view) {
assert(r);
- connect(r.get(), SIGNAL(visibility_changed()),
+ connect(r.get(), SIGNAL(appearance_changed()),
this, SLOT(update()));
}
}