Add tooltips to tile selection view
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.9k
- Forks
- 2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 8
Description
Hello,
It should be interesting to add a tooltip in the tooltip selection view, se we can see the "tile Id", even local one should be fine.
Something like adding this to data method in tilesetmodel.cpp:
...
} else if (role == Qt::ToolTipRole ) {
if (Tile *tile = tileAt(index))
return QString("Id: %1").arg(tile->id());
}
....
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in tilesetmodel.cpp and inspect the data method and its handling of Qt::ToolTipRole. Use the existing tileAt(index) and tile id information described in the issue. Done means hovering a tile in the tile selection view displays its local tile ID.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, game-dev
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100