mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Added debug output for, well, debugging.
This commit is contained in:
@@ -235,8 +235,9 @@ void
|
|||||||
fixLayoutMargins( QLayout* layout, QWidget* parent )
|
fixLayoutMargins( QLayout* layout, QWidget* parent )
|
||||||
{
|
{
|
||||||
DpiScaler scaler( parent );
|
DpiScaler scaler( parent );
|
||||||
layout->setContentsMargins( scaler.scaled( layout->contentsMargins() ) );
|
tDebug() << "FIX MARGINS Found layout:" << layout << parent << layout->contentsMargins() << scaler.scaled( layout->contentsMargins() );
|
||||||
layout->setMargin( scaler.scaledX( layout->margin() ) );
|
layout->setMargin( scaler.scaledX( layout->margin() ) );
|
||||||
|
layout->setContentsMargins( scaler.scaled( layout->contentsMargins() ) );
|
||||||
layout->setSpacing( scaler.scaledX( layout->spacing() ) );
|
layout->setSpacing( scaler.scaledX( layout->spacing() ) );
|
||||||
|
|
||||||
for ( int i = 0; i < layout->count(); i++ )
|
for ( int i = 0; i < layout->count(); i++ )
|
||||||
@@ -251,6 +252,7 @@ fixLayoutMargins( QLayout* layout, QWidget* parent )
|
|||||||
void
|
void
|
||||||
fixMargins( QWidget* widget )
|
fixMargins( QWidget* widget )
|
||||||
{
|
{
|
||||||
|
tDebug() << "FIX MARGINS Found widget:" << widget->objectName() << widget;
|
||||||
if ( widget->layout() )
|
if ( widget->layout() )
|
||||||
{
|
{
|
||||||
fixLayoutMargins( widget->layout(), widget );
|
fixLayoutMargins( widget->layout(), widget );
|
||||||
|
Reference in New Issue
Block a user