Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
337:813170c57b13 | 338:1d3b27e69bf0 |
---|---|
20 #include "base/RealTime.h" | 20 #include "base/RealTime.h" |
21 #include "base/Profiler.h" | 21 #include "base/Profiler.h" |
22 #include "ViewManager.h" | 22 #include "ViewManager.h" |
23 #include "base/CommandHistory.h" | 23 #include "base/CommandHistory.h" |
24 #include "base/TextAbbrev.h" | 24 #include "base/TextAbbrev.h" |
25 #include "base/Preferences.h" | |
25 #include "layer/WaveformLayer.h" | 26 #include "layer/WaveformLayer.h" |
26 | 27 |
27 //!!! ugh | 28 //!!! ugh |
28 #include "data/model/WaveFileModel.h" | 29 #include "data/model/WaveFileModel.h" |
29 | 30 |
386 if (e) r = e->rect(); | 387 if (e) r = e->rect(); |
387 | 388 |
388 View::paintEvent(e); | 389 View::paintEvent(e); |
389 | 390 |
390 paint.begin(this); | 391 paint.begin(this); |
392 | |
393 QFont font(paint.font()); | |
394 font.setPointSize(Preferences::getInstance()->getViewFontSize()); | |
395 paint.setFont(font); | |
391 | 396 |
392 if (e) paint.setClipRect(r); | 397 if (e) paint.setClipRect(r); |
393 | 398 |
394 ViewManager::ToolMode toolMode = m_manager->getToolMode(); | 399 ViewManager::ToolMode toolMode = m_manager->getToolMode(); |
395 | 400 |