uncurstify
This commit is contained in:
parent
bfd4f2bc5f
commit
acd83bd8bf
|
@ -52,7 +52,8 @@ Qt::Alignment QskDrawer::alignment() const {
|
|||
}
|
||||
|
||||
void QskDrawer::setEdge( Qt::Edge edge ) {
|
||||
if( m_data->edge == edge ) {
|
||||
if( m_data->edge == edge )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -62,7 +63,8 @@ void QskDrawer::setEdge( Qt::Edge edge ) {
|
|||
}
|
||||
|
||||
void QskDrawer::setAlignment( Qt::Alignment alignment ) {
|
||||
if( m_data->alignment == alignment ) {
|
||||
if( m_data->alignment == alignment )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -86,9 +88,12 @@ void QskDrawer::updateLayout() {
|
|||
qreal x = metric( faderAspect() ) * contentSize.width() * -1.0;
|
||||
qreal y = 0;
|
||||
|
||||
if( alignment().testFlag( Qt::AlignVCenter ) ) {
|
||||
if( alignment().testFlag( Qt::AlignVCenter ) )
|
||||
{
|
||||
y = ( parentSize.height() - contentSize.height() ) / 2.0;
|
||||
} else if ( alignment().testFlag( Qt::AlignBottom ) ) {
|
||||
}
|
||||
else if ( alignment().testFlag( Qt::AlignBottom ) )
|
||||
{
|
||||
y = ( parentSize.height() - contentSize.height() );
|
||||
}
|
||||
|
||||
|
@ -104,9 +109,12 @@ void QskDrawer::updateLayout() {
|
|||
- contentSize.width();
|
||||
qreal y = 0;
|
||||
|
||||
if( alignment().testFlag( Qt::AlignVCenter ) ) {
|
||||
if( alignment().testFlag( Qt::AlignVCenter ) )
|
||||
{
|
||||
y = ( parentSize.height() - contentSize.height() ) / 2.0;
|
||||
} else if ( alignment().testFlag( Qt::AlignBottom ) ) {
|
||||
}
|
||||
else if ( alignment().testFlag( Qt::AlignBottom ) )
|
||||
{
|
||||
y = ( parentSize.height() - contentSize.height() );
|
||||
}
|
||||
|
||||
|
@ -122,9 +130,12 @@ void QskDrawer::updateLayout() {
|
|||
qreal x = 0;
|
||||
qreal y = metric( faderAspect() ) * contentSize.height();
|
||||
|
||||
if( alignment().testFlag( Qt::AlignCenter) ) {
|
||||
if( alignment().testFlag( Qt::AlignCenter) )
|
||||
{
|
||||
x = ( parentSize.width() - contentSize.width() ) / 2;
|
||||
} else if( alignment().testFlag( Qt::AlignRight) ) {
|
||||
}
|
||||
else if( alignment().testFlag( Qt::AlignRight) )
|
||||
{
|
||||
x = ( parentSize.width() - contentSize.width() );
|
||||
}
|
||||
|
||||
|
@ -137,11 +148,15 @@ void QskDrawer::updateLayout() {
|
|||
case Qt::Edge::BottomEdge:
|
||||
{
|
||||
qreal x = 0;
|
||||
qreal y = metric( faderAspect() ) * contentSize.height() + parentSize.height() - contentSize.height();
|
||||
qreal y = metric( faderAspect() ) * contentSize.height() + parentSize.height() -
|
||||
contentSize.height();
|
||||
|
||||
if( alignment().testFlag( Qt::AlignCenter) ) {
|
||||
if( alignment().testFlag( Qt::AlignCenter) )
|
||||
{
|
||||
x = ( parentSize.width() - contentSize.width() ) / 2;
|
||||
} else if( alignment().testFlag( Qt::AlignRight) ) {
|
||||
}
|
||||
else if( alignment().testFlag( Qt::AlignRight) )
|
||||
{
|
||||
x = ( parentSize.width() - contentSize.width() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue