tweaks for qt 4.7
[fapman] / packageview.h
index 6ffb5e8..9111ca8 100644 (file)
@@ -85,7 +85,7 @@ public:
 
        enum sortOrder { SortAlpha, SortDateDesc, SortSizeDesc };
 
-    explicit PackageView(QWidget *parent = 0);
+       explicit PackageView(QWidget *parent);
        virtual ~PackageView();
 
        void openWin();
@@ -104,6 +104,7 @@ public:
 #ifdef Q_WS_MAEMO_5            // workaround for buggy Qt autorotation
        void show() {
                if( !isVisible() ) {
+                       /*
                        QRect r = dynamic_cast<QMainWindow*>(this->parent())->rect();
                        if(r.width() < r.height()) {
                                this->setAttribute(Qt::WA_Maemo5PortraitOrientation);
@@ -115,8 +116,11 @@ public:
                                        this->setAttribute( Qt::WA_Maemo5LandscapeOrientation );
                                }
                                this->setAttribute(Qt::WA_Maemo5StackedWindow);
-                               this->setWindowFlags(Qt::Window);
+                               this->setWindowFlags( Qt::Window );
                        }
+                       */
+                       this->setAttribute(Qt::WA_Maemo5StackedWindow);
+                       this->setWindowFlags( Qt::Window );
                }
                QMainWindow::show();
        }