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 |