From 1fc4b47d8d0e7489d5e6bc1f2b5f0638f2be5a55 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 2cc38cb6383..3932567eaea 100644 --- a/src/gui/kernel/qscreen.cpp +++ b/src/gui/kernel/qscreen.cpp @@ -130,6 +130,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 {