src/primitives.cpp

changeset 1284
7da74697b7d2
parent 1283
3c3a5eb965f7
child 1285
0d165d277562
equal deleted inserted replaced
1283:3c3a5eb965f7 1284:7da74697b7d2
92 m_activeScanner->work(); 92 m_activeScanner->work();
93 connect(m_activeScanner, &PrimitiveScanner::workDone, this, [&]() 93 connect(m_activeScanner, &PrimitiveScanner::workDone, this, [&]()
94 { 94 {
95 if (m_activeScanner) 95 if (m_activeScanner)
96 { 96 {
97 emit layoutAboutToBeChanged();
97 m_primitives = m_activeScanner->scannedPrimitives(); 98 m_primitives = m_activeScanner->scannedPrimitives();
98 emit layoutAboutToBeChanged();
99 populateCategories(); 99 populateCategories();
100 emit layoutChanged();
100 print(tr("%1 primitives scanned"), countof(m_primitives)); 101 print(tr("%1 primitives scanned"), countof(m_primitives));
101 delete m_activeScanner; 102 delete m_activeScanner;
102 m_activeScanner = nullptr; 103 m_activeScanner = nullptr;
103 emit layoutChanged();
104 } 104 }
105 }); 105 });
106 } 106 }
107 } 107 }
108 108

mercurial