octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51460] allow cursor flashing to be configured


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #51460] allow cursor flashing to be configured globally
Date: Sat, 22 Jul 2017 22:03:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #6, bug #51460 (project octave):

Oops, I thought I had shown my proof of concept patch already.


diff --git a/libgui/src/main-window.cc b/libgui/src/main-window.cc
--- a/libgui/src/main-window.cc
+++ b/libgui/src/main-window.cc
@@ -1798,6 +1798,8 @@ main_window::construct (void)
                               
&main_window::resize_command_window_callback);
 
       configure_shortcuts ();
+
+      QApplication::setCursorFlashTime (0);
     }
 }
 


This quick and dirty change disables all blinking for me.

The argument is in milliseconds, with a default of 1000 (or query the previous
value with QApplication::cursorFlashTime).

This call is safe for all Qt versions.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51460>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]