Skip to content

Commit

Permalink
Add Tooltip to TOC
Browse files Browse the repository at this point in the history
Elided item text is expanded here.
  • Loading branch information
ShaopengLin committed Nov 7, 2024
1 parent f389411 commit 6d4aca1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tableofcontentbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ void populateItem(const QJsonArray& headerArray, QTreeWidgetItem* parent)
item->setData(0, Qt::DisplayRole, display);
item->setData(0, Qt::FontRole, QFont("Selawik", 12));
item->setData(0, Qt::UserRole, header["anchor"].toString());
item->setToolTip(0, display);
populateItem(header["child"].toArray(), item);
}
}
Expand Down

0 comments on commit 6d4aca1

Please sign in to comment.