Mercurial > hg > svcore
diff base/Preferences.cpp @ 387:7aa1de571880
* juggle some files around in order to free audioio, base, and system libraries
from dependency on QtGui
author | Chris Cannam |
---|---|
date | Wed, 12 Mar 2008 17:42:56 +0000 |
parents | 98a480c5f410 |
children | 98077b21a9e1 |
line wrap: on
line diff
--- a/base/Preferences.cpp Sat Mar 01 16:17:44 2008 +0000 +++ b/base/Preferences.cpp Wed Mar 12 17:42:56 2008 +0000 @@ -23,8 +23,6 @@ #include <QFileInfo> #include <QMutex> #include <QSettings> -#include <QApplication> -#include <QFont> Preferences * Preferences::m_instance = 0; @@ -62,9 +60,7 @@ m_resampleOnLoad = settings.value("resample-on-load", false).toBool(); m_backgroundMode = BackgroundMode (settings.value("background-mode", int(BackgroundFromTheme)).toInt()); - m_viewFontSize = settings.value - ("view-font-size", int(QApplication::font().pointSize() * 0.9)) - .toInt(); + m_viewFontSize = settings.value("view-font-size", 10).toInt(); m_showSplash = settings.value("show-splash", true).toBool(); settings.endGroup(); @@ -222,7 +218,7 @@ if (name == "View Font Size") { if (min) *min = 3; if (max) *max = 48; - if (deflt) *deflt = int(QApplication::font().pointSize() * 0.9); + if (deflt) *deflt = 10; return int(m_viewFontSize); }