- Comments

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15417 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Asger Ottar Alstrup 2006-10-20 19:40:02 +00:00
parent b27bb5cb53
commit 4f3033ff91
2 changed files with 3 additions and 1 deletions

View File

@ -107,7 +107,7 @@ private:
* All points cached in this cache are only valid between subsequent * All points cached in this cache are only valid between subsequent
* updated. (x,y) == (0,0) is the upper left screen corner, x increases * updated. (x,y) == (0,0) is the upper left screen corner, x increases
* to the right, y increases downwords. * to the right, y increases downwords.
* The cache is built in BufferView::Pimpl::metrics which is called * The cache is built in BufferView::updateMetrics which is called
* from BufferView::Pimpl::update. The individual points are added * from BufferView::Pimpl::update. The individual points are added
* while we paint them. See for instance paintPar in RowPainter.C. * while we paint them. See for instance paintPar in RowPainter.C.
*/ */

View File

@ -217,6 +217,8 @@ void QLToolbar::show(bool)
void QLToolbar::update() void QLToolbar::update()
{ {
// This is a speed bottleneck because this is called on every keypress
// and update calls getStatus, which copies the cursor at least two times
for (size_t i=0; i<ActionVector.size(); ++i) for (size_t i=0; i<ActionVector.size(); ++i)
ActionVector[i]->update(); ActionVector[i]->update();