Archived posts from a dozen years ago.

Quax 4 – a tale of porting

25 August 2009

Note for planetqt readers: the title should be ‘Quax 4 – a tale of porting’

Once upon a time, a little application called quax was landed on kde-apps. As imagination is better served by a picture, here is what quax looks like:

Quax after being ported to Qt 4.5.

Quax after being ported to Qt 4.5.

It’s nothing but a simple and easy to use screen magnifier. You can move it around and place it near the detail to magnify. Plus it lets you pick the color of a pixel. It’s the perfect tool when you’re tuning the style, pixels and gradients of your beloved app 😉 It had only one drawback: it was build with Qt 3.

Porting Quax to Qt4

It was the first time I had to port an application from Qt3 to Qt4. Here are some stats:

  • The porting took 3 hours (you can see it from the git history, dinner included 😉 )
  • I did the following:
    • create the project files
    • use qt3to4 with that files
    • make it compile disabling some code chunks
    • re-enable the disabled code in a qt4 way
    • disabled qt3 support from the .pro file and fixed all until it compiled
    • update the packaging informations, readme’s
    • published Quax 4 in kde-apps
  • The source code dropped from 670 to 547 lines of code. So Qt4 saved 14% of code compared to Qt3 for this project.
  • The cleanness went drastically up, the API of Qt4 is a big improvement over that of Qt3.
  • I can’t talk about speed or graphics improvements.. but if you look at the old screenshots you’ll see that the font rendering was really improved in Qt4

Conclusion

Finally I have quax back, and you can have it too! 😉 The source code is on gitorious, and here is the kde-apps page. A final thank word to Claudiu Costin (the original author) and Vlad Oancea (the skin designer). I won’t maintain quax4 and I don’t plan to add any features, I’m just glad I can keep my box Qt3 free while designing pixel-perfect graphics thanks to this cute little utility 😉

Categories
Software
Tags
open source, planetqt, qt

« Fotowall 0.7 Fotowall One Hundred Thousand »

Comments are closed.

Blogroll

  • Ariya Hidayat's Blog
  • Davide La Rosa
  • PlanetKDE
  • Pollycoke
  • Qt Labs
  • Yanko Design
  • Zack Rusin's Blog

Recent Posts

  • How to recognize a revolution
  • KDE 3 on “The Social Network” movie
  • Delicious Transblurency [1]
  • Grab one, it’s free!
  • Gift a cool idea!

Tags

amarok Android avanguardia cheating colorpicker creativity curriculum figosità fotowall future graphicsview heroes kde3 kde4 life M31 multi-touch nokia open source planetkde planetqt posterazor qt qtsoftware statistics summer of code wallpaper x.org

Archives

  • April 2011 (1)
  • September 2010 (1)
  • April 2010 (1)
  • January 2010 (1)
  • December 2009 (3)
  • October 2009 (1)
  • September 2009 (4)
  • August 2009 (1)
  • July 2009 (3)
  • June 2009 (3)
  • May 2009 (2)
  • April 2009 (3)
  • March 2009 (1)
  • January 2009 (2)
  • May 2008 (1)
  • April 2008 (1)
  • January 2008 (2)
  • December 2007 (1)
  • November 2007 (1)
  • September 2007 (3)