mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
* Added font debug output on startup.
This commit is contained in:
@@ -195,16 +195,16 @@ TomahawkApp::init()
|
|||||||
setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) );
|
setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) );
|
||||||
setQuitOnLastWindowClosed( false );
|
setQuitOnLastWindowClosed( false );
|
||||||
|
|
||||||
QFont f = APP->font();
|
QFont f = font();
|
||||||
|
tDebug() << "Default font:" << f.pixelSize() << f.pointSize() << f.pointSizeF() << f.family();
|
||||||
|
tDebug() << "Font heights:" << QFontMetrics( f ).height();
|
||||||
f.setPixelSize( HeaderLabel::defaultFontSize() );
|
f.setPixelSize( HeaderLabel::defaultFontSize() );
|
||||||
QFontMetrics fm( f );
|
QFontMetrics fm( f );
|
||||||
TomahawkUtils::setHeaderHeight( fm.height() + 8 );
|
TomahawkUtils::setHeaderHeight( fm.height() + 8 );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TomahawkUtils::setHeadless( m_headless );
|
TomahawkUtils::setHeadless( m_headless );
|
||||||
|
|
||||||
TomahawkSettings* s = TomahawkSettings::instance();
|
TomahawkSettings* s = TomahawkSettings::instance();
|
||||||
|
|
||||||
new ACLRegistryImpl( this );
|
new ACLRegistryImpl( this );
|
||||||
|
|
||||||
tDebug( LOGINFO ) << "Setting NAM.";
|
tDebug( LOGINFO ) << "Setting NAM.";
|
||||||
@@ -334,10 +334,9 @@ TomahawkApp::init()
|
|||||||
// A bug in Qt means the wheel_scroll_lines setting gets ignored and replaced
|
// A bug in Qt means the wheel_scroll_lines setting gets ignored and replaced
|
||||||
// with the default value of 3 in QApplicationPrivate::initialize.
|
// with the default value of 3 in QApplicationPrivate::initialize.
|
||||||
{
|
{
|
||||||
QSettings qt_settings(QSettings::UserScope, "Trolltech");
|
QSettings qt_settings( QSettings::UserScope, "Trolltech" );
|
||||||
qt_settings.beginGroup("Qt");
|
qt_settings.beginGroup( "Qt" );
|
||||||
QApplication::setWheelScrollLines(
|
QApplication::setWheelScrollLines( qt_settings.value( "wheelScrollLines", QApplication::wheelScrollLines() ).toInt() );
|
||||||
qt_settings.value("wheelScrollLines", QApplication::wheelScrollLines()).toInt());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef ENABLE_HEADLESS
|
#ifndef ENABLE_HEADLESS
|
||||||
|
Reference in New Issue
Block a user