mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 14:28:24 +01:00
Center text
This commit is contained in:
parent
365a021a29
commit
cf7194407b
@ -603,7 +603,7 @@ TomahawkWindow::updatePreview()
|
||||
doc.setDefaultFont( font );
|
||||
|
||||
doc.setPageSize( QSize( size.width() - 2 * margin - coverSize.width() , size.height() - 2 * margin ) );
|
||||
doc.setHtml( QString( "<font color=\"white\">%1</font>" ).arg( title ));
|
||||
doc.setHtml( QString( "<center><font color=\"white\">%1</font></center>" ).arg( title ));
|
||||
|
||||
paint.save();
|
||||
paint.translate( coverSize.width() + 2 * margin , ( size.height() - doc.size().height() ) / 2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user