projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
00c518d
)
View: Move comment to where it belongs
author
Soeren Apel
<soeren@apelpie.net>
Tue, 19 Sep 2017 05:50:50 +0000
(07:50 +0200)
committer
Soeren Apel
<soeren@apelpie.net>
Fri, 22 Sep 2017 19:13:48 +0000
(21:13 +0200)
pv/views/trace/view.cpp
patch
|
blob
|
history
diff --git
a/pv/views/trace/view.cpp
b/pv/views/trace/view.cpp
index 269768669a5a44b8c94ac30c8ee7cbc9d2a2252f..f63401e61ed496f114ea0173cb985ea204c034f3 100644
(file)
--- a/
pv/views/trace/view.cpp
+++ b/
pv/views/trace/view.cpp
@@
-899,6
+899,14
@@
bool View::header_was_shrunk() const
void View::expand_header_to_fit()
{
void View::expand_header_to_fit()
{
+ // Setting the maximum width of the header widget doesn't work as
+ // expected because the splitter would allow the user to make the
+ // pane wider than that, creating empty space as a result.
+ // To make this work, we stricly enforce the maximum width by
+ // expanding the header unless the user shrunk it on purpose.
+ // As we're then setting the width of the header pane, we set the
+ // splitter to the maximum allowed position.
+
int splitter_area_width = 0;
for (int w : splitter_->sizes())
splitter_area_width += w;
int splitter_area_width = 0;
for (int w : splitter_->sizes())
splitter_area_width += w;
@@
-1101,13
+1109,6
@@
void View::on_signal_name_changed()
void View::on_splitter_moved()
{
void View::on_splitter_moved()
{
- // Setting the maximum width of the header widget doesn't work as
- // expected because the splitter would allow the user to make the
- // pane wider than that, creating empty space as a result.
- // To make this work, we stricly enforce the maximum width by
- // expanding the header unless the user shrunk it on purpose.
- // As we're then setting the width of the header pane, we set the
- // splitter to the maximum allowed position.
if (!header_was_shrunk())
expand_header_to_fit();
}
if (!header_was_shrunk())
expand_header_to_fit();
}