summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Tkachenko <me@ratijas.tk>2022-01-12 18:28:09 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-13 19:57:31 +0000
commit6d08ad4b4d4b969a10fc66090548fa0cb462723a (patch)
tree08a5fd61bf4cf136911bec8de9fbd32dffb46605
parent5c81f429844a8b4f002cb298398e17381768df48 (diff)
QPixelTool: Fix closing ul tag in aboutText()
This issue was found by PVS-Studio static analyzer and posted on habr[1] in early 2021. This was clearly meant to be a matching closing tag. Amends 0285e3ad511882b3cfb87fc06ffbf5775c01437b [1]: https://habr.com/ru/company/pvs-studio/blog/542760/#opechatki Change-Id: Ibab5750e8f41e13052604c15885c8ecb8f0c98fe Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 6d14299db579503e89de0ea0188b54782bc9e627) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/pixeltool/qpixeltool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pixeltool/qpixeltool.cpp b/src/pixeltool/qpixeltool.cpp
index 760c3f01e..cb556823a 100644
--- a/src/pixeltool/qpixeltool.cpp
+++ b/src/pixeltool/qpixeltool.cpp
@@ -700,11 +700,11 @@ QString QPixelTool::aboutText() const
QString result;
QTextStream str(&result);
- str << "<html></head><body><h2>Qt Pixeltool</h2><p>Qt " << QT_VERSION_STR
+ str << "<html><head></head><body><h2>Qt Pixeltool</h2><p>Qt " << QT_VERSION_STR
<< "</p><p>Copyright (C) 2017 The Qt Company Ltd.</p><h3>Screens</h3><ul>";
for (const QScreen *screen : screens)
str << "<li>" << (screen == windowScreen ? "* " : " ") << screen << "</li>";
- str << "<ul></body></html>";
+ str << "</ul></body></html>";
return result;
}