aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols2
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-07-10 21:26:08 +0200
committerMarc Mutz <marc.mutz@kdab.com>2019-07-11 20:50:01 +0000
commit05a98e4db8a91447159eabb6ebc68c40cb7f6cf7 (patch)
tree6731747a2e528570aa94c48f5c7f8b485564bcbc /src/quickcontrols2
parentc3e52db481fb48f456b8cee86a5a789093ef9546 (diff)
Fix compilation with explicit QChar(*int*) ctors
The QChar ctors from integral non-char types are under consideration for adding explicit. Fix users of these ctors ahead of the change. Change-Id: I2d8f5276fe448ac2a3b3332e1b3773556ef9c676 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/quickcontrols2')
-rw-r--r--src/quickcontrols2/qquickmnemoniclabel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickcontrols2/qquickmnemoniclabel.cpp b/src/quickcontrols2/qquickmnemoniclabel.cpp
index a006f076..193365b5 100644
--- a/src/quickcontrols2/qquickmnemoniclabel.cpp
+++ b/src/quickcontrols2/qquickmnemoniclabel.cpp
@@ -88,7 +88,7 @@ static QTextLayout::FormatRange underlineRange(int start, int length = 1)
// based on QPlatformTheme::removeMnemonics()
void QQuickMnemonicLabel::updateMnemonic()
{
- QString text(m_fullText.size(), 0);
+ QString text(m_fullText.size(), QChar::Null);
int idx = 0;
int pos = 0;
int len = m_fullText.length();