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>
This commit is contained in:
Michael Andreen 2013-07-27 15:51:51 +02:00 committed by Dirk Hohndel
parent 069f588d9d
commit 1f976371bf

View file

@ -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);