Salome HOME
Updated copyright comment
[modules/gui.git] / src / Style / Style_Tools.cxx
index 9977b3a6408dfea3221ff01ada6ac57a67c9e1ef..7a27f7fd236823a9386864397f81e1939614c7a1 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -354,8 +354,9 @@ void Style_Tools::drawArrow( QStyle::PrimitiveElement type, QPainter* p, const Q
   p->translate( xc, yc );
   bool correct = false;
   switch( type ) {
-    case QStyle::PE_IndicatorArrowDown:
+    case QStyle::PE_IndicatorArrowDown: {
       correct = true;
+    } // fall through!
     case QStyle::PE_IndicatorArrowUp: {
       int widthArr2 = (int)(deltaX/3.);
       if ( correct )
@@ -374,8 +375,9 @@ void Style_Tools::drawArrow( QStyle::PrimitiveElement type, QPainter* p, const Q
       x11 = -deltaX; y11 = -deltaY; x12 = deltaX; y12 = deltaY;
       break;
     }
-    case QStyle::PE_IndicatorArrowLeft: // to change
+    case QStyle::PE_IndicatorArrowLeft: {
       correct = true;
+    } // fall through!
     case QStyle::PE_IndicatorArrowRight: {
       int widthArr2 = (int)(deltaX/3.);
       if ( correct )
@@ -392,8 +394,9 @@ void Style_Tools::drawArrow( QStyle::PrimitiveElement type, QPainter* p, const Q
       x11 = deltaX; y11 = deltaY; x12 = -deltaX; y12 = -deltaY;
       break;
     }
-    case QStyle::PE_IndicatorSpinDown:
+    case QStyle::PE_IndicatorSpinDown: {
       correct = true;
+    } // fall through!
     case QStyle::PE_IndicatorSpinUp: {
       aDelta = (int)(deltaY/2);
       if ( correct ) {
@@ -447,8 +450,9 @@ void Style_Tools::drawSign( QStyle::PrimitiveElement type, QPainter* p, const QR
   p->translate( xc, yc );
   bool correct = false;
   switch( type ) {
-    case QStyle::PE_IndicatorSpinMinus:
+    case QStyle::PE_IndicatorSpinMinus: {
       correct = true;
+    } // fall through!
     case QStyle::PE_IndicatorSpinPlus: {
       aDelta = (int)(deltaY/2);
       if ( correct ) {
@@ -694,7 +698,7 @@ void Style_Tools::drawFocus( QPainter* p, const QPainterPath& path, const QColor
 */
 void Style_Tools::drawSlider( QPainter* p, const QRect& r, const double rad,
                               SliderType type, const QColor& light, const QColor& dark,
-                              const QColor& border_top, const QColor& border_bot )
+                              const QColor& /*border_top*/, const QColor& border_bot )
 {
   p->save();
   QPainterPath path, bottomPath;