summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Michael Andreen <harv@ruin.nu>2013-07-27 15:51:51 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-08-05 06:56:34 +0200
commit1f976371bff0a3c23119165aa601e27da458c22d (patch)
tree23c63743be909d807e7807501bdbaa3276496afb
parent069f588d9dfc6ae6b93d19364846e8a6ed4af6a2 (diff)
downloadsubsurface-1f976371bff0a3c23119165aa601e27da458c22d.tar.gz
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 <harv@ruin.nu> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/profilegraphics.cpp4
1 files 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);