OSDN Git Service

kcolorchooser: drop it
[kde/kde-extraapps.git] / kmix / gui / ksmallslider.cpp
index 1f3ed21..60151cf 100644 (file)
@@ -30,9 +30,9 @@
 #include <qpainter.h>
 #include <QColor>
 #include <qbrush.h>
-#include <QMouseEvent>
+#include <QtGui/qevent.h>
 #include <qstyle.h>
-#include <QStyleOptionSlider>
+#include <QtGui/qstyleoption.h>
 
 #include "kglobalsettings.h"
 #include "core/mixer.h"
@@ -170,7 +170,7 @@ void gradient( QPainter &p, bool hor, const QRect &rect, const QColor &ca, const
    int rDiff, gDiff, bDiff;
    int rca, gca, bca, rcb, gcb, bcb;
 
-   register int x, y;
+   int x, y;
 
    if ((rect.width()<=0) || (rect.height()<=0)) return;
 
@@ -178,9 +178,9 @@ void gradient( QPainter &p, bool hor, const QRect &rect, const QColor &ca, const
    gDiff = (gcb = cb.green()) - (gca = ca.green());
    bDiff = (bcb = cb.blue())  - (bca = ca.blue());
 
-   register int rl = rca << 16;
-   register int gl = gca << 16;
-   register int bl = bca << 16;
+   int rl = rca << 16;
+   int gl = gca << 16;
+   int bl = bca << 16;
 
    int rcdelta = ((1<<16) / ((!hor) ? rect.height() : rect.width())) * rDiff;
    int gcdelta = ((1<<16) / ((!hor) ? rect.height() : rect.width())) * gDiff;
@@ -257,7 +257,7 @@ void KSmallSlider::paintEvent( QPaintEvent * )
         kDebug(67100) << "KSmallSlider::paintEvent: sliderPos=" << sliderPos
                        << "height()=" << height()
                        << "width()=" << width()
-                       << "outer = " << outer << endl;
+                       << "outer = " << outer;
 */
          if ( grayed )
              gradient( p, false, outer,
@@ -319,10 +319,10 @@ void KSmallSlider::wheelEvent( QWheelEvent * qwe)
 
     int inc = ( maximum() - minimum() ) / Volume::VOLUME_STEP_DIVISOR;
     if ( inc < 1)
-       inc = 1;
+        inc = 1;
 
     //kDebug(67100) << "KSmallslider::wheelEvent() inc=" << inc << "delta=" << e->delta();
-       int newVal;
+    int newVal;
 
     if ( !decrease ) {
        newVal = QAbstractSlider::value() + inc;
@@ -350,7 +350,7 @@ void KSmallSlider::moveSlider( int pos )
 
     if ( newVal != value() ) {
         setValue( newVal );
-       emit valueChanged(newVal);
+        emit valueChanged(newVal);
         // probably done by Qt: emit valueChanged( value() ); //  Only for external use
         // probably we need update() here
     }