src/gui/itemviews/qheaderview.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
  1869     }
  1869     }
  1870     persistentHiddenSections.clear();
  1870     persistentHiddenSections.clear();
  1871 
  1871 
  1872     for (int i = 0; i < oldSectionHidden.count(); ++i) {
  1872     for (int i = 0; i < oldSectionHidden.count(); ++i) {
  1873         if (oldSectionHidden.testBit(i))
  1873         if (oldSectionHidden.testBit(i))
  1874             q->setSectionHidden(logicalIndex(i), false);
  1874             q->setSectionHidden(i, false);
  1875     }
  1875     }
  1876 
  1876 
  1877     // the number of sections changed; we need to reread the state of the model
  1877     // the number of sections changed; we need to reread the state of the model
  1878     if (sectionCountChanged)
  1878     if (sectionCountChanged)
  1879         q->initializeSections();
  1879         q->initializeSections();