-// Copyright (C) 2007-2020 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
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 )
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 )
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 ) {
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 ) {
*/
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;