https://bugs.kde.org/show_bug.cgi?id=498745

kam...@windowslive.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kam...@windowslive.com

--- Comment #3 from kam...@windowslive.com ---
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?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to