#ifdef Q_WS_MAEMO_5 // workaround for buggy Qt autorotation
QRect r = dynamic_cast<QWidget*>(this->parent())->rect();
if(r.width() < r.height())
this->setAttribute(Qt::WA_Maemo5PortraitOrientation);
#endif
#ifdef Q_WS_MAEMO_5 // workaround for buggy Qt autorotation
QRect r = dynamic_cast<QWidget*>(this->parent())->rect();
if(r.width() < r.height())
this->setAttribute(Qt::WA_Maemo5PortraitOrientation);
#endif
#ifdef Q_WS_MAEMO_5 // workaround for buggy Qt autorotation
this->setAttribute(Qt::WA_Maemo5AutoOrientation);
#endif
#ifdef Q_WS_MAEMO_5 // workaround for buggy Qt autorotation
this->setAttribute(Qt::WA_Maemo5AutoOrientation);
#endif