Toying with maemo and rotating apps

Written by

in

, ,

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.

Comments

3 responses to “Toying with maemo and rotating apps”

  1. Ken Bloom Avatar

    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 Avatar

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

    1. sune Avatar
      sune

      So that my headers can be used even with QT_NO_KEYWORDS defined.