initializations simplified
This commit is contained in:
parent
f0c9548b4c
commit
0cda639d87
@ -193,8 +193,7 @@ void Editor::setButton( QskAspect aspect, PanelStyle style, qreal border )
|
|||||||
#endif
|
#endif
|
||||||
QskBoxBorderColors borderColors;
|
QskBoxBorderColors borderColors;
|
||||||
|
|
||||||
QskGradient gradient;
|
QskGradient gradient( QskGradient::Vertical );
|
||||||
gradient.setOrientation( QskGradient::Vertical );
|
|
||||||
|
|
||||||
switch ( style )
|
switch ( style )
|
||||||
{
|
{
|
||||||
@ -1012,7 +1011,7 @@ void Editor::setupSwitchButton()
|
|||||||
setBoxShape( Q::Handle, 100, Qt::RelativeSize );
|
setBoxShape( Q::Handle, 100, Qt::RelativeSize );
|
||||||
setStrutSize( Q::Handle, handleSize, handleSize );
|
setStrutSize( Q::Handle, handleSize, handleSize );
|
||||||
|
|
||||||
setGradient( Q::Handle, QskGradient( Qt::Vertical, m_pal.lighter150, m_pal.lighter110 ) );
|
setVGradient( Q::Handle, m_pal.lighter150, m_pal.lighter110 );
|
||||||
setGradient( Q::Handle | Q::Disabled, m_pal.lighter110 );
|
setGradient( Q::Handle | Q::Disabled, m_pal.lighter110 );
|
||||||
|
|
||||||
setBoxBorderMetrics( Q::Handle, 2 );
|
setBoxBorderMetrics( Q::Handle, 2 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user