Mercurial > hg > svgui
diff view/Pane.cpp @ 338:1d3b27e69bf0
* Make font size in panes configurable, with a smaller default
* Add [ and ] to select prev/next pane
author | Chris Cannam |
---|---|
date | Tue, 11 Dec 2007 14:58:29 +0000 |
parents | 2f83b6e3b8ca |
children | ac954fc0ec6f |
line wrap: on
line diff
--- a/view/Pane.cpp Thu Nov 29 10:43:54 2007 +0000 +++ b/view/Pane.cpp Tue Dec 11 14:58:29 2007 +0000 @@ -22,6 +22,7 @@ #include "ViewManager.h" #include "base/CommandHistory.h" #include "base/TextAbbrev.h" +#include "base/Preferences.h" #include "layer/WaveformLayer.h" //!!! ugh @@ -389,6 +390,10 @@ paint.begin(this); + QFont font(paint.font()); + font.setPointSize(Preferences::getInstance()->getViewFontSize()); + paint.setFont(font); + if (e) paint.setClipRect(r); ViewManager::ToolMode toolMode = m_manager->getToolMode();