@@ -55,7 +55,7 @@ QMap<SystemComponent::PlatformArch, QString> g_platformArchNames = {
5555
5656
5757// /////////////////////////////////////////////////////////////////////////////////////////////////
58- SystemComponent::SystemComponent (QObject* parent) : ComponentBase(parent), m_platformType(platformTypeUnknown), m_platformArch(platformArchUnknown), m_doLogMessages(false ), m_cursorVisible( true ), m_scale(1 ), m_connectivityCheckReply(nullptr ), m_resolveUrlReply(nullptr )
58+ SystemComponent::SystemComponent (QObject* parent) : ComponentBase(parent), m_platformType(platformTypeUnknown), m_platformArch(platformArchUnknown), m_doLogMessages(false ), m_scale(1 ), m_connectivityCheckReply(nullptr ), m_resolveUrlReply(nullptr )
5959{
6060 m_connectivityRetryTimer = new QTimer (this );
6161 m_connectivityRetryTimer->setSingleShot (true );
@@ -100,9 +100,6 @@ bool SystemComponent::componentInitialize()
100100 QDir ().mkpath (Paths::dataDir (" scripts" ));
101101 QDir ().mkpath (Paths::dataDir (" sounds" ));
102102
103- // Hide mouse pointer on any keyboard input
104- connect (&InputComponent::Get (), &InputComponent::receivedInput, [=]() { setCursorVisibility (false ); });
105-
106103 return true ;
107104}
108105
@@ -421,33 +418,6 @@ void SystemComponent::cancelServerConnectivity()
421418 m_pendingConnectivityUrl.clear ();
422419}
423420
424- // /////////////////////////////////////////////////////////////////////////////////////////////////
425- void SystemComponent::setCursorVisibility (bool visible)
426- {
427- if (SettingsComponent::Get ().value (SETTINGS_SECTION_MAIN , " webMode" ) == " desktop" )
428- visible = true ;
429-
430- if (visible == m_cursorVisible)
431- return ;
432-
433- m_cursorVisible = visible;
434-
435- if (visible)
436- {
437- qApp->restoreOverrideCursor ();
438- }
439- else
440- {
441- qApp->setOverrideCursor (QCursor (Qt::BlankCursor));
442- }
443-
444- #ifdef Q_OS_MAC
445- // OSX notifications will reset the cursor image (without Qt's knowledge). The
446- // only thing we can do override this is using Cocoa's native cursor hiding.
447- OSXUtils::SetCursorVisible (visible);
448- #endif
449- }
450-
451421// /////////////////////////////////////////////////////////////////////////////////////////////////
452422QString SystemComponent::getUserAgent ()
453423{
0 commit comments