From 1f976371bff0a3c23119165aa601e27da458c22d Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 27 Jul 2013 15:51:51 +0200 Subject: Fix " begin" and " end" for events in plot. QObject::tr() has source string as first argument and disambiguation as second argument. Currently the events shows "Starts with space!" instead of " begin" or " end" after the event name. Signed-off-by: Michael Andreen Acked-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- qt-ui/profilegraphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index e85bfc5e1..6f064ab29 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -830,8 +830,8 @@ void ProfileGraphicsView::plot_one_event(struct event *ev) } else if (ev->name && name == "SP change") { name += tr("Bailing out to OC"); } else { - name += ev->flags == SAMPLE_FLAGS_BEGIN ? tr("Starts with space!"," begin") : - ev->flags == SAMPLE_FLAGS_END ? tr("Starts with space!", " end") : ""; + name += ev->flags == SAMPLE_FLAGS_BEGIN ? tr(" begin", "Starts with space!") : + ev->flags == SAMPLE_FLAGS_END ? tr(" end", "Starts with space!") : ""; } //item->setToolTipController(toolTip); -- cgit v1.2.3-70-g09d2