[elvystrac] r1719 - flickering problem fixed

  • From: elvys@xxxxxxxxxxxxxxxxxxxxxx
  • To: elvystrac@xxxxxxxxxxxxx
  • Date: Sun, 14 Feb 2010 00:57:13 +0100

Author: JirkaH
Date: 2010-02-14 00:57:12 +0100 (Sun, 14 Feb 2010)
New Revision: 1719

Modified:
   
branches/client/pdf-presentation-branch/elvys-client/src/pdfpresentationviewer.cpp
Log:
flickering problem fixed


Modified: 
branches/client/pdf-presentation-branch/elvys-client/src/pdfpresentationviewer.cpp
===================================================================
--- 
branches/client/pdf-presentation-branch/elvys-client/src/pdfpresentationviewer.cpp
  2010-02-13 22:19:20 UTC (rev 1718)
+++ 
branches/client/pdf-presentation-branch/elvys-client/src/pdfpresentationviewer.cpp
  2010-02-13 23:57:12 UTC (rev 1719)
@@ -502,7 +502,8 @@
 
 void PDFPresentationViewer::setBorder(bool focused) {
        if (focused) {
-               setFrameStyle(QFrame::Box | QFrame::Raised);
+               //setFrameStyle(QFrame::Box | QFrame::Raised);
+               setFrameStyle(QFrame::Panel | QFrame::Plain);
                setLineWidth(3);
                setMidLineWidth(0);
                setPalette( AppConfig::getInstance()->getPaletteFocused() );
@@ -553,7 +554,7 @@
 }
 
 void PDFPresentationViewer::doFadeEffect() {           
-       alfa += 20;
+       alfa += 25;
        update();
 }
 
@@ -587,6 +588,7 @@
                inPageTransition = false;
                alfa = 0;
        }
+       //setPixmap(currentPixmap);
        update();
        manageMovements();
 }
@@ -598,10 +600,10 @@
                        alfa = 255;
                }
 
-/*             if ( pixmap() != NULL) {
-                       setPixmap(NULL);
+               if ( pixmap() != NULL) {
+                       clear();
                }
-*/
+
                QPainter painter(this);
                QPixmap pixmap;         
 
@@ -622,12 +624,15 @@
                if (alfa == 255) {
                        stopFadeEffect();
                }
-//             QLabel::paintEvent(event);
+               QLabel::paintEvent(event);
        } else {
+               if (pixmap() == NULL) {
+                       setPixmap(currentPixmap);
+               }
                if ( QPixmapCache::find(getPageKey(size(), pageKeyCur)) == 
false) {
                        getCurrentPage();
                        return;
-               }
+               }               
                QLabel::paintEvent(event);
        }
 }


Other related posts:

  • » [elvystrac] r1719 - flickering problem fixed - elvys