[PATCH] Fix " begin" and " end" for events in plot.

Michael Andreen harv at ruin.nu
Sat Jul 27 06:51:51 PDT 2013


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 <harv at ruin.nu>
---
 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 e2604c6..020c4b5 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);
-- 
1.8.1.5




More information about the subsurface mailing list