mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-13 12:31:52 +02:00
* Added debug output for, well, debugging.
This commit is contained in:
parent
b12d0fde3d
commit
2362bf9b90
@ -235,8 +235,9 @@ void
|
||||
fixLayoutMargins( QLayout* layout, QWidget* 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->setContentsMargins( scaler.scaled( layout->contentsMargins() ) );
|
||||
layout->setSpacing( scaler.scaledX( layout->spacing() ) );
|
||||
|
||||
for ( int i = 0; i < layout->count(); i++ )
|
||||
@ -251,6 +252,7 @@ fixLayoutMargins( QLayout* layout, QWidget* parent )
|
||||
void
|
||||
fixMargins( QWidget* widget )
|
||||
{
|
||||
tDebug() << "FIX MARGINS Found widget:" << widget->objectName() << widget;
|
||||
if ( widget->layout() )
|
||||
{
|
||||
fixLayoutMargins( widget->layout(), widget );
|
||||
|
Loading…
x
Reference in New Issue
Block a user