Skip to content

Commit 91fcdaa

Browse files
dfaure-kdabmilianw
authored andcommitted
feat: clarify "Filter In On Thread #%1 By Time"
by renaming it to "Filter By Time Of Thread #%1" and adding a tooltip
1 parent a1b45d5 commit 91fcdaa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/models/timelinedelegate.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,13 @@ bool TimeLineDelegate::eventFilter(QObject* watched, QEvent* event)
489489
if (isRightButtonEvent && index.isValid() && numThreads > 1 && threadId != Data::INVALID_TID) {
490490
if ((!isFiltered && !isMainThread)
491491
|| (isFiltered && filter.time.end != threadStartTime && filter.time.end != threadEndTime)) {
492-
contextMenu->addAction(QIcon::fromTheme(QStringLiteral("kt-add-filters")),
493-
tr("Filter In On Thread #%1 By Time").arg(threadId), this,
494-
[this, threadStartTime, threadEndTime]() {
495-
m_filterAndZoomStack->filterInByTime({threadStartTime, threadEndTime});
496-
});
492+
auto action = contextMenu->addAction(
493+
QIcon::fromTheme(QStringLiteral("kt-add-filters")),
494+
tr("Filter By Time Of Thread #%1").arg(threadId), this, [this, threadStartTime, threadEndTime]() {
495+
m_filterAndZoomStack->filterInByTime({threadStartTime, threadEndTime});
496+
});
497+
action->setToolTip(tr("Filter by time, from the start to the end of this thread. All other threads "
498+
"will still be visible."));
497499
}
498500
if ((!isFiltered || filter.threadId == Data::INVALID_TID)) {
499501
contextMenu->addAction(QIcon::fromTheme(QStringLiteral("kt-add-filters")),

0 commit comments

Comments
 (0)