Toying with maemo and rotating apps

I have been playing a bit around with Maemo and writing Qt apps for n900. I ended up needing a rotation aware QMainWindow a couple of times, so I ended up abstracting it away in my own MaemoMainWindow, which I just wanted to share. It has enough ifdefs to also build against ‘normal’ Qt, outside Maemo.

Have fun. Available under any license.

maemomainwindow.h:

maemomainwindow.cpp:

Update: reformatted code. Thought wordpres and <code> was smart. Thanks Ken.

3 comments on “Toying with maemo and rotating apps
  1. Ken Bloom says:

    This post could use some formatting work. In particular, it’s not preformatted, and the HTML seems to have eaten the names of the #include files (and who knows what else)

  2. suy says:

    Just curious: why did you use Q_SIGNALS/Q_SLOTS instead of signals/slots?