src/primitives.cpp

changeset 1063
1f15c52c11f6
parent 1062
4119185b56ca
child 1064
4c7a353cf583
equal deleted inserted replaced
1062:4119185b56ca 1063:1f15c52c11f6
73 m_primitives.append(info); 73 m_primitives.append(info);
74 } 74 }
75 } 75 }
76 76
77 populateCategories(); 77 populateCategories();
78 print(tr("%1 primitives loaded.") + "\n", m_primitives.size()); 78 print(tr("%1 primitives loaded.") + "\n", length(m_primitives));
79 } 79 }
80 } 80 }
81 81
82 82
83 void PrimitiveManager::startScan() 83 void PrimitiveManager::startScan()
91 { 91 {
92 if (m_activeScanner) 92 if (m_activeScanner)
93 { 93 {
94 m_primitives = m_activeScanner->scannedPrimitives(); 94 m_primitives = m_activeScanner->scannedPrimitives();
95 populateCategories(); 95 populateCategories();
96 print(tr("%1 primitives scanned"), m_primitives.size()); 96 print(tr("%1 primitives scanned"), length(m_primitives));
97 delete m_activeScanner; 97 delete m_activeScanner;
98 m_activeScanner = nullptr; 98 m_activeScanner = nullptr;
99 } 99 }
100 }); 100 });
101 } 101 }

mercurial