comparison view/View.cpp @ 186:8dd247c4c5f1

* Further fix for restoring layer visibility from session file * Better handling of error state in bzip file device to avoid spurious errors * Fix #1495001 deleted layers prevail in saved session file
author Chris Cannam
date Fri, 05 Jan 2007 15:49:10 +0000
parents 5f86ae638b04
children 5b7472db612b
comparison
equal deleted inserted replaced
185:dd932fe5f3ff 186:8dd247c4c5f1
1554 m_followPlay == PlaybackScrollPage ? "page" : "ignore") 1554 m_followPlay == PlaybackScrollPage ? "page" : "ignore")
1555 .arg(m_lightBackground) 1555 .arg(m_lightBackground)
1556 .arg(extraAttributes); 1556 .arg(extraAttributes);
1557 1557
1558 for (size_t i = 0; i < m_layers.size(); ++i) { 1558 for (size_t i = 0; i < m_layers.size(); ++i) {
1559 s += m_layers[i]->toXmlString(indent + " "); 1559 bool visible = !m_layers[i]->isLayerDormant(this);
1560 s += m_layers[i]->toXmlString(indent + " ",
1561 QString("visible=\"%1\"")
1562 .arg(visible ? "true" : "false"));
1560 } 1563 }
1561 1564
1562 s += indent + "</view>\n"; 1565 s += indent + "</view>\n";
1563 1566
1564 return s; 1567 return s;