diff options
author | Andy Shaw <andy.shaw@qt.io> | 2017-10-31 14:29:37 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2019-01-08 21:37:04 +0000 |
commit | e70230405dce5ac03817fc564a3a8ba5f208422a (patch) | |
tree | 569588632c89a67f418231901144f5801e2ca863 /src/widgets/widgets/qdockwidget.cpp | |
parent | c961d1a6d29af8ea385c042ec0d2d419e3bbfa84 (diff) |
Don't treat the ampersand in a titlebar as a mnemonic
As the mnemonic has no meaning when it is in a dockwidget title, we
should just treat it as a literal ampersand instead and display it
as such.
Fixes: QTBUG-54485
Change-Id: I96c856ce2771a68d226f48f8f47affc24f1c53cd
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/widgets/widgets/qdockwidget.cpp')
-rw-r--r-- | src/widgets/widgets/qdockwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp index 663225ebf3..cd3accefff 100644 --- a/src/widgets/widgets/qdockwidget.cpp +++ b/src/widgets/widgets/qdockwidget.cpp @@ -55,6 +55,7 @@ #include <private/qwidgetresizehandler_p.h> #include <private/qstylesheetstyle_p.h> +#include <qpa/qplatformtheme.h> #include "qdockwidget_p.h" #include "qmainwindowlayout_p.h" |