diff mbox series

[33/34] kernelshark: Allow to reduce a bit more the graph height

Message ID 20240114171723.14092-34-dev@benjarobin.fr (mailing list archive)
State Accepted
Commit d489c87edd39419bcf22dcdf2a61208f2eae3137
Headers show
Series Fix kernelshark issues introduced by the migration to Qt6 | expand

Commit Message

Benjamin ROBIN Jan. 14, 2024, 5:17 p.m. UTC
With this configuration, at least one core on the graph can be seen
---
 src/KsTraceGraph.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Yordan Karadzhov Jan. 21, 2024, 7:37 p.m. UTC | #1
On 1/14/24 19:17, Benjamin ROBIN wrote:
> With this configuration, at least one core on the graph can be seen
Please provide a better explanation of the problem you are trying to
solve with this patch. It seems that you decrease the minimum height
of the widget. How is this going to make "at least one core on the
graph can be seen"?

And please make sure you signed all your patches.

Thanks!
Y.

> ---
>   src/KsTraceGraph.cpp | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/KsTraceGraph.cpp b/src/KsTraceGraph.cpp
> index bc910c8..4599a12 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);
>
diff mbox series

Patch

diff --git a/src/KsTraceGraph.cpp b/src/KsTraceGraph.cpp
index bc910c8..4599a12 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);