summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eee3eab)
This change is primarily needed because before, newly
created decode signals had a name assigned to them at time
of the constructor call. This changed, and now the name
is empty upon creation, breaking the previously working
header size adjustment.
{
ViewBase::add_signalbase(signal->base());
signals_.insert(signal);
{
ViewBase::add_signalbase(signal->base());
signals_.insert(signal);
+
+ connect(signal->base().get(), SIGNAL(name_changed(const QString&)),
+ this, SLOT(on_signal_name_changed()));
shared_ptr<DecodeTrace> d(
new DecodeTrace(session_, signal, decode_traces_.size()));
decode_traces_.push_back(d);
shared_ptr<DecodeTrace> d(
new DecodeTrace(session_, signal, decode_traces_.size()));
decode_traces_.push_back(d);
+
+ connect(signal.get(), SIGNAL(name_changed(const QString&)),
+ this, SLOT(on_signal_name_changed()));
}
void View::remove_decode_signal(shared_ptr<data::DecodeSignal> signal)
}
void View::remove_decode_signal(shared_ptr<data::DecodeSignal> signal)
lazy_event_handler_.start();
}
lazy_event_handler_.start();
}
+void View::on_signal_name_changed()
+{
+ if (!header_was_shrunk())
+ expand_header_to_fit();
+}
+
void View::on_splitter_moved()
{
// Setting the maximum width of the header widget doesn't work as
void View::on_splitter_moved()
{
// Setting the maximum width of the header widget doesn't work as
+ void on_signal_name_changed();
void on_splitter_moved();
void h_scroll_value_changed(int value);
void on_splitter_moved();
void h_scroll_value_changed(int value);