Author Topic: Blog: Okular tiled rendering merged to master (KDE 4.10)  (Read 495 times)

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15311
  • ┌∩┐(◕_◕)┌∩┐
Blog: Okular tiled rendering merged to master (KDE 4.10)
« on: November 12, 2012, 05:55:10 AM »
TSDgeos' blog - Sunday, November 11, 2012

Okular tiled rendering (more info)  has been merged into master and is scheduled to be released with 4.10 KDE Applications release. There are a few open issues that Mailson and Fabio are working like crazy to get fixed for the upcoming Beta 1 release this thursday. It would be great if you can give it a try anyway and report any issue you might find.

(more info)

Okular tiled rendering manual

http://tsdgeos.blogspot.co.uk/2012/11/okular-tiled-rendering-merged-to-master.html
« Last Edit: November 12, 2012, 05:56:47 AM by menotu »
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15311
  • ┌∩┐(◕_◕)┌∩┐
Re: Blog: Okular tiled rendering merged to master (KDE 4.10)
« Reply #1 on: February 07, 2013, 07:10:53 AM »
TSDgeos' blog - February 07, 2013

Unit testing KColorButton (which caused Okular to crash)

Around two weeks ago, a bug about was reported in which Okular crashed when changing the color of highlighted text. After a bit of debugging i found that the bug was actually in kdelibs in the KColorButton class.

This is a class I had never looked internally so it was a bit hard to decide where to start looking for a fix. Then I decided to look at the git log and realized the last commit introduced by a fix for color selection not working correctly on double click.

I took my chances and saw that reverting that patch actually removed the crash, so now I knew where to look :-)

After a few minutes looking at the code i came up with a 3-line patch that fixed the crash and still made double click work correctly. I'm so awesome \o/

But that wasn't enough, I needed to *prove* I had fixed it, so i decided to create some tests, that was a bit harder since it involved "clicking" in buttons and stuff, but QTest to the rescue and a few hours later I had this nice unit test that will warn us if that breaks again :-)

So next time you fix a bug, unit test it! And don't complain it's graphical, that's no excuse!

And of course the tests run just fine in build.kde.org even if they show buttons/dialogs :-)

Blog + link to patch info/
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000