Mercurial > hg > svgui
changeset 1603:f12c25651f96
Debug
author | Chris Cannam |
---|---|
date | Wed, 29 Apr 2020 17:47:37 +0100 |
parents | a798a7b5e215 |
children | 5feb1a8318df |
files | view/View.cpp |
diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/view/View.cpp Wed Apr 29 14:46:37 2020 +0100 +++ b/view/View.cpp Wed Apr 29 17:47:37 2020 +0100 @@ -3003,10 +3003,20 @@ bool someLayersIncomplete = false; +#ifdef DEBUG_VIEW + SVDEBUG << "View::render: checking completion" << endl; +#endif + for (LayerList::iterator i = m_layerStack.begin(); i != m_layerStack.end(); ++i) { int c = (*i)->getCompletion(this); + +#ifdef DEBUG_VIEW + SVDEBUG << "layer " << (*i)->getLayerPresentationName() << " says " + << c << endl; +#endif + if (c < 100) { someLayersIncomplete = true; break; @@ -3022,6 +3032,10 @@ while (layerCompletion < 100) { +#ifdef DEBUG_VIEW + SVDEBUG << "View::render: checking completion (again)" << endl; +#endif + for (LayerList::iterator i = m_layerStack.begin(); i != m_layerStack.end(); ++i) { @@ -3029,6 +3043,11 @@ if (i == m_layerStack.begin() || c < layerCompletion) { layerCompletion = c; } + +#ifdef DEBUG_VIEW + SVDEBUG << "layer " << (*i)->getLayerPresentationName() << " says " + << c << ", layerCompletion now " << layerCompletion << endl; +#endif } if (layerCompletion >= 100) break; @@ -3044,6 +3063,10 @@ } } +#ifdef DEBUG_VIEW + SVDEBUG << "View::render: ok, we're ready" << endl; +#endif + QProgressDialog progress(tr("Rendering image..."), tr("Cancel"), 0, w / width(), this);