Commit 13a88f9a authored by Laurent Montel's avatar Laurent Montel 😁

Remove deprecated method

parent 3cedbce3
......@@ -139,7 +139,7 @@ namespace Oxygen
if( !m_decoration ) return;
// get relevant colors
const QColor backgroundColor( m_decoration->client().data()->palette().color(QPalette::Background) );
const QColor backgroundColor( m_decoration->client().data()->palette().color(QPalette::Window) );
// create and configure painter
QPainter painter(this);
......
......@@ -3251,7 +3251,7 @@ namespace Oxygen
} else if( state & State_Raised ) {
const QRect local( rect );
renderSlab( painter, rect, palette.color( QPalette::Background ), NoFill );
renderSlab( painter, rect, palette.color( QPalette::Window ), NoFill );
}
......@@ -4565,8 +4565,8 @@ namespace Oxygen
const int center( rect.left()+ rect.width()/2 );
for( int j = rect.top()+2; j <= rect.bottom()-3; j+=3, ++counter )
{
if( counter%2 == 0 ) _helper->renderDot( painter, QPoint( center+1, j ), palette.color( QPalette::Background ) );
else _helper->renderDot( painter, QPoint( center-2, j ), palette.color( QPalette::Background ) );
if( counter%2 == 0 ) _helper->renderDot( painter, QPoint( center+1, j ), palette.color( QPalette::Window ) );
else _helper->renderDot( painter, QPoint( center-2, j ), palette.color( QPalette::Window ) );
}
} else {
......@@ -4574,8 +4574,8 @@ namespace Oxygen
const int center( rect.top()+ rect.height()/2 );
for( int j = rect.left()+2; j <= rect.right()-3; j+=3, ++counter )
{
if( counter%2 == 0 ) _helper->renderDot( painter, QPoint( j, center+1 ), palette.color( QPalette::Background ) );
else _helper->renderDot( painter, QPoint( j, center-2 ), palette.color( QPalette::Background ) );
if( counter%2 == 0 ) _helper->renderDot( painter, QPoint( j, center+1 ), palette.color( QPalette::Window ) );
else _helper->renderDot( painter, QPoint( j, center-2 ), palette.color( QPalette::Window ) );
}
}
......@@ -4681,7 +4681,7 @@ namespace Oxygen
if( !StyleConfigData::viewDrawTreeBranchLines() ) return true;
const QPoint center( rect.center() );
const QColor lineColor( KColorUtils::mix( palette.color( QPalette::Text ), palette.color( QPalette::Background ), 0.8 ) );
const QColor lineColor( KColorUtils::mix( palette.color( QPalette::Text ), palette.color( QPalette::Window ), 0.8 ) );
painter->setRenderHint( QPainter::Antialiasing, false );
painter->setPen( lineColor );
if( state & ( State_Item | State_Children | State_Sibling ) )
......@@ -7142,7 +7142,7 @@ namespace Oxygen
}
background = palette.color( QPalette::Background );
background = palette.color( QPalette::Window );
if( enabled ) drawContrast = false;
......@@ -7754,7 +7754,7 @@ namespace Oxygen
}
const qreal penThickness = 1.6;
const QColor background = palette.color( QPalette::Background );
const QColor background = palette.color( QPalette::Window );
const QPolygonF arrow( genericArrow( ( subControl == SC_SpinBoxUp ) ? ArrowUp:ArrowDown, ArrowNormal ) );
const QRect arrowRect( subControlRect( CC_SpinBox, option, subControl, widget ) );
......@@ -7813,7 +7813,7 @@ namespace Oxygen
}
// get base color
const QColor color = palette.color( QPalette::Background );
const QColor color = palette.color( QPalette::Window );
if( horizontal )
{
......
......@@ -262,7 +262,7 @@ namespace Oxygen
{
QPalette out( source );
out.setColor( QPalette::Background, KColorUtils::mix( source.color( QPalette::Active, QPalette::Background ), source.color( QPalette::Disabled, QPalette::Background ), 1.0-ratio ) );
out.setColor( QPalette::Window, KColorUtils::mix( source.color( QPalette::Active, QPalette::Background ), source.color( QPalette::Disabled, QPalette::Background ), 1.0-ratio ) );
out.setColor( QPalette::Highlight, KColorUtils::mix( source.color( QPalette::Active, QPalette::Highlight ), source.color( QPalette::Disabled, QPalette::Highlight ), 1.0-ratio ) );
out.setColor( QPalette::WindowText, KColorUtils::mix( source.color( QPalette::Active, QPalette::WindowText ), source.color( QPalette::Disabled, QPalette::WindowText ), 1.0-ratio ) );
out.setColor( QPalette::ButtonText, KColorUtils::mix( source.color( QPalette::Active, QPalette::ButtonText ), source.color( QPalette::Disabled, QPalette::ButtonText ), 1.0-ratio ) );
......
......@@ -44,7 +44,7 @@ namespace Oxygen
{
ui->setupUi( this );
layout()->setMargin(0);
layout()->setContentsMargins(0, 0, 0, 0);
ui->configurationButton->setIcon( QIcon::fromTheme( QStringLiteral("configure") ) );
ui->descriptionButton->setIcon( QIcon::fromTheme( QStringLiteral( "dialog-information") ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment