mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
069f588d9d
commit
1f976371bf
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue