Mercurial > hg > svcore
comparison base/View.cpp @ 120:e388730429b5
* Make mp3 file importer read the file, instead of mmapping it (for portability)
author | Chris Cannam |
---|---|
date | Mon, 22 May 2006 10:46:43 +0000 |
parents | c30728d5625c |
children | 53dfcd7db419 |
comparison
equal
deleted
inserted
replaced
119:fda016f64f7c | 120:e388730429b5 |
---|---|
1082 } | 1082 } |
1083 | 1083 |
1084 void | 1084 void |
1085 View::paintEvent(QPaintEvent *e) | 1085 View::paintEvent(QPaintEvent *e) |
1086 { | 1086 { |
1087 // Profiler prof("View::paintEvent", true); | 1087 // Profiler prof("View::paintEvent", false); |
1088 // std::cerr << "View::paintEvent" << std::endl; | 1088 // std::cerr << "View::paintEvent" << std::endl; |
1089 | 1089 |
1090 if (m_layers.empty()) { | 1090 if (m_layers.empty()) { |
1091 QFrame::paintEvent(e); | 1091 QFrame::paintEvent(e); |
1092 return; | 1092 return; |
1313 | 1313 |
1314 paint.setPen(Qt::black); | 1314 paint.setPen(Qt::black); |
1315 paint.setBrush(Qt::NoBrush); | 1315 paint.setBrush(Qt::NoBrush); |
1316 | 1316 |
1317 for (LayerList::iterator i = nonScrollables.begin(); i != nonScrollables.end(); ++i) { | 1317 for (LayerList::iterator i = nonScrollables.begin(); i != nonScrollables.end(); ++i) { |
1318 // Profiler profiler2("View::paintEvent non-cacheable"); | |
1318 (*i)->paint(this, paint, nonCacheRect); | 1319 (*i)->paint(this, paint, nonCacheRect); |
1319 } | 1320 } |
1320 | 1321 |
1321 paint.end(); | 1322 paint.end(); |
1322 | 1323 |