From 961f5a6fa22b338c975d81c959c502322fdb64af Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 31 Jan 2022 18:50:15 +0100 Subject: QGuiApplication: invert meaning of qt_is_gui_used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default value was true, which is non-zero, forcing the variable out of the BSS and into the DATA segment. Fix by inverting the meaning so the default value can be false. Since qt_is_gui_unused sounds a bit complicated, however, take a cue from the variable's only writer and rename it qt_is_tty_app. Pick-to: 6.3 Change-Id: I198e9786f7e71178d69fecb5179287bf39b3a1d6 Reviewed-by: Qt CI Bot Reviewed-by: Fabian Kosmale Reviewed-by: Richard Moe Gustavsen Reviewed-by: Mårten Nordheim Reviewed-by: Tor Arne Vestbø --- src/widgets/kernel/qapplication_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/kernel/qapplication_p.h') diff --git a/src/widgets/kernel/qapplication_p.h b/src/widgets/kernel/qapplication_p.h index 155081fd79..0f86269332 100644 --- a/src/widgets/kernel/qapplication_p.h +++ b/src/widgets/kernel/qapplication_p.h @@ -86,7 +86,7 @@ class QPointingDevice; class QGestureManager; #endif -extern Q_GUI_EXPORT bool qt_is_gui_used; +extern Q_GUI_EXPORT bool qt_is_tty_app; #ifndef QT_NO_CLIPBOARD extern QClipboard *qt_clipboard; #endif -- cgit v1.2.3