Lens Search Entry Blinking Cursor

Bug #767119 reported by Aritchie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-2d
New
Undecided
Unassigned

Bug Description

Sorry gentlemen about this since this is not a bug but it was the quickest way I could submit code. I was seeing if I could add a blinking cursor to the Search Entry field and after poking around I found an example at Nokia's website and grafted it into the SearchEntry.qml file. I have tested this on the latest unity-2d build on 11.04 beta 1(heavily updated though) and seems to work well so far. Of course, if may not be what y'all are looking for. You might want to play around with the animation settings but it seems to work well on my machine.

Revision history for this message
Aritchie (aritchie) wrote :
Revision history for this message
Aritchie (aritchie) wrote :

I did some testing with and without the blinker and it seems it uses a little more memory as expected but it did not seem to hog a great deal more. Like I mentioned, it may not be what y'a'll are looking for though.

Revision history for this message
Aritchie (aritchie) wrote :

Of course, it depends on what your definition of "a little more memory" is. :)

Revision history for this message
Olivier Tilloy (osomon) wrote :

Nice, thanks for the contribution Adam!

Note: the cursor in the search entry in unity-3d doesn’t blink either, so we are currently on par. You may want to raise the topic on the ayatana-design mailing list to get input from the design team.

Revision history for this message
Florian Boucault (fboucault) wrote :

The bug was already filed and confirmed against Unity 3D and Unity 2D: bug #730273

Revision history for this message
Florian Boucault (fboucault) wrote :

Thanks for the patch Aritchie. A couple of things:

1) It does not seem necessary to add new code, the existing, commented code for the animation does the same job.
2) Unfortunately activating the animation uses up to 70% of the CPU on my machine, which is why it was deactivated in the first place. I am guessing the problem is similar to bug #769023. Maybe playing with http://doc.qt.nokia.com/latest/qgraphicsview.html#ViewportUpdateMode-enum could be interesting to try. Ultimately I believe enabling the OpenGL backend will solve the issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.