| Summary: | In file properties dialog, print start and end of hashsum instead of cutting it, if window is not wide enough | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Andrew Shark <ashark> |
| Component: | Properties dialog | Assignee: | KIO Bugs <kio-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | wishlist | CC: | kamkaz, kdelibs-bugs-null, nate |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Screenshot showing a problem
A drawing of how the solution could look |
||
|
Description
Andrew Shark
2025-01-16 14:16:14 UTC
Created attachment 177413 [details]
Screenshot showing a problem
Created attachment 177414 [details]
A drawing of how the solution could look
It seems to be tricky to achieve. One attempt could be using `QFontMetrics::elidedText()`. It has, however, some issues: - Likely, we would have to paint the text ourselves instead of relying on the default QLineEdit painting. Does it mean, that there would be no way to select the text? It's at least a bit confusing. What should happen if the text is selected, does it snap to showing the entire hash? - the formatting on the elided text would be pretty plain (as in, no formatting, just ellipsis (...) in the middle, same color, not even separating space) Is there an easier / better way to do it? Do we already have some widget like that? |