[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-1/amarok/src
From:       Mark Kretschmann <markey () web ! de>
Date:       2005-01-22 19:26:06
Message-ID: 20050122192606.3D29F1C01A () office ! kde ! org
[Download RAW message or body]

CVS commit by markey: 

Make compile.


  M +13 -11    osd.cpp   1.77


--- kdeextragear-1/amarok/src/osd.cpp  #1.76:1.77
@@ -47,13 +47,8 @@ OSDWidget::OSDWidget( QWidget *parent, c
 }
 
-void
-OSDWidget::show() //virtual
+class OSDGrabber : public QWidget
 {
-    if ( !isEnabled() )
-        return;
-
-    class Grabber : public QWidget {
-    public:
-        Grabber( const QRect &r, const QColor &color ) : QWidget( 0, 0 ) {
+public:
+    OSDGrabber( const QRect &r, const QColor &color ) : QWidget( 0, 0 ) {
             move( 0, 0 );
             screen = QPixmap::grabWindow( winId(), r.x(), r.y(), r.width(), r.height() );
@@ -61,5 +56,11 @@ OSDWidget::show() //virtual
         }
         KPixmap screen;
-    };
+};
+
+void
+OSDWidget::show() //virtual
+{
+    if ( !isEnabled() )
+        return;
 
     const QRect oldGeometry = QRect( pos(), size() );
@@ -72,5 +73,6 @@ OSDWidget::show() //virtual
     if( !isShown() ) {
         // obtain snapshot of the screen where we are about to appear
-        Grabber g( QRect(pos(), size()), backgroundColor() );
+        QRect rect( pos(), size() );
+        OSDGrabber g( rect, backgroundColor() );
         m_screenshot = g.screen;
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic