From d346b0f7afcf92a76466c5aaff5fed80d74dcb59 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 13 Jun 2025 15:22:11 +0900 Subject: Rename 'guiThread' and related functions to 'coreThread'. A TTY TQApplication is GUI-less, so the usage of the term 'GUI' is misleading. Signed-off-by: Michele Calgaro --- src/kernel/tqwidget.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/kernel/tqwidget.cpp') diff --git a/src/kernel/tqwidget.cpp b/src/kernel/tqwidget.cpp index 71fe8ea16..ac56e302a 100644 --- a/src/kernel/tqwidget.cpp +++ b/src/kernel/tqwidget.cpp @@ -882,13 +882,12 @@ TQWidget::TQWidget( TQWidget *parent, const char *name, WFlags f, NFlags n ) { #if defined(QT_CHECK_STATE) && !defined(TQ_WS_WIN) if ( tqApp->type() == TQApplication::Tty ) { - tqWarning( "TQWidget: Cannot create a TQWidget when no GUI " - "is being used" ); + tqFatal( "TQWidget: Cannot create a TQWidget when no GUI is being used" ); } #endif #if defined(TQT_THREAD_SUPPORT) && defined(QT_CHECK_STATE) - if (TQThread::currentThreadObject() != TQApplication::guiThread()) { + if (!TQApplication::isCoreThread()) { tqFatal( "TQWidget: Cannot create a TQWidget outside of the main GUI thread" ); } #endif -- cgit v1.2.3