From 03da3363a8a995834373f565869ef601a42d95fa Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Thu, 22 Dec 2022 18:56:47 +0800 Subject: [PATCH] Update the documentation of QScreen::name() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-109569 Change-Id: I24ed586e9094e7cd2277c6289ffbd4210dd6e430 Reviewed-by: Tor Arne Vestbø (cherry picked from commit 9af5a70c55c9ec85113303fb48af405304335d1a) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qscreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/kernel/qscreen.cpp b/src/gui/kernel/qscreen.cpp index 45be27de64f..39bce4cd862 100644 --- a/src/gui/kernel/qscreen.cpp +++ b/src/gui/kernel/qscreen.cpp @@ -150,6 +150,10 @@ QPlatformScreen *QScreen::handle() const For example, on X11 these correspond to the XRandr screen names, typically "VGA1", "HDMI1", etc. + + \note The user presentable string is not guaranteed to match the + result of any native APIs, and should not be used to uniquely identify + a screen. */ QString QScreen::name() const {