diff options
author | Mitch Curtis <mitch.curtis@digia.com> | 2013-03-13 14:32:08 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-19 09:57:09 +0200 |
commit | f3612f39ff5fb07f83b89732e8b7a643ee6d5cd3 (patch) | |
tree | ffa806bc1a504f456ede3c01ec43f2eec48057c4 /src/gui/kernel/qstylehints.cpp | |
parent | 8597458cebf1df64b5559426ec5c1d14567b2a83 (diff) |
Make password mask characters themeable.
Task-number: QTBUG-29871
Change-Id: I3cf739a321d7917f8f8431992e29bba0871b1934
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/gui/kernel/qstylehints.cpp')
-rw-r--r-- | src/gui/kernel/qstylehints.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp index 23bc165edd..30b12835f7 100644 --- a/src/gui/kernel/qstylehints.cpp +++ b/src/gui/kernel/qstylehints.cpp @@ -193,6 +193,15 @@ int QStyleHints::passwordMaskDelay() const } /*! + Returns the character used to mask the characters typed into text input + fields in password mode. +*/ +QChar QStyleHints::passwordMaskCharacter() const +{ + return themeableHint(QPlatformTheme::PasswordMaskCharacter, QPlatformIntegration::PasswordMaskCharacter).toChar(); +} + +/*! Returns the gamma value used in font smoothing. */ qreal QStyleHints::fontSmoothingGamma() const |