diff options
author | Benjamin ROBIN <dev@benjarobin.fr> | 2024-01-28 19:59:48 +0100 |
---|---|---|
committer | Yordan Karadzhov <y.karadz@gmail.com> | 2024-02-04 19:13:46 +0200 |
commit | d489c87edd39419bcf22dcdf2a61208f2eae3137 (patch) | |
tree | 10b1a6a3eeb559866373c2f2e8c313ad274febdd | |
parent | ed02d2ae445b4fdd5c03197ff73c419c16d8c83a (diff) | |
download | kernel-shark-d489c87edd39419bcf22dcdf2a61208f2eae3137.tar.gz |
kernelshark: Allow to reduce a bit more the graph height
Reduce minimum height of the graph widget which allows the user (using the
splitter widget) to expand a bit more the trace viewer (KsTraceViewer)
which provide the table view (KsTableView).
This is very useful when a user has a very small screen.
With this configuration, at least one CPU core on the graph (KsTraceGraph)
can be seen, so the graph widget is still perfectly usable.
Signed-off-by: Benjamin ROBIN <dev@benjarobin.fr>
Signed-off-by: Yordan Karadzhov <y.karadz@gmail.com>
-rw-r--r-- | src/KsTraceGraph.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KsTraceGraph.cpp b/src/KsTraceGraph.cpp index bc910c8f..4599a12d 100644 --- a/src/KsTraceGraph.cpp +++ b/src/KsTraceGraph.cpp @@ -593,8 +593,8 @@ void KsTraceGraph::updateGeom() _layout.contentsMargins().top() + _layout.contentsMargins().bottom(); - if (hMin > KS_GRAPH_HEIGHT * 8) - hMin = KS_GRAPH_HEIGHT * 8; + if (hMin > KS_GRAPH_HEIGHT * 6) + hMin = KS_GRAPH_HEIGHT * 6; setMinimumHeight(hMin); |