comparison widgets/TransformFinder.cpp @ 682:1a0dfcbffaf1

Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author Chris Cannam
date Tue, 26 Nov 2013 14:06:40 +0000
parents 1fe7951a61e8
children e4773943c9c1
comparison
equal deleted inserted replaced
681:eaf4446a1bef 682:1a0dfcbffaf1
167 } 167 }
168 168
169 void 169 void
170 TransformFinder::searchTextChanged(const QString &text) 170 TransformFinder::searchTextChanged(const QString &text)
171 { 171 {
172 // std::cerr << "text is " << text << std::endl; 172 // cerr << "text is " << text << endl;
173 m_newSearchText = text; 173 m_newSearchText = text;
174 } 174 }
175 175
176 void 176 void
177 TransformFinder::timeout() 177 TransformFinder::timeout()
185 185
186 QStringList keywords = text.split(' ', QString::SkipEmptyParts); 186 QStringList keywords = text.split(' ', QString::SkipEmptyParts);
187 TransformFactory::SearchResults results = 187 TransformFactory::SearchResults results =
188 TransformFactory::getInstance()->search(keywords); 188 TransformFactory::getInstance()->search(keywords);
189 189
190 // std::cerr << results.size() << " result(s)..." << std::endl; 190 // cerr << results.size() << " result(s)..." << endl;
191 191
192 std::set<TextMatcher::Match> sorted; 192 std::set<TextMatcher::Match> sorted;
193 sorted.clear(); 193 sorted.clear();
194 for (TransformFactory::SearchResults::const_iterator j = results.begin(); 194 for (TransformFactory::SearchResults::const_iterator j = results.begin();
195 j != results.end(); ++j) { 195 j != results.end(); ++j) {
239 239
240 while (m_upToDateCount < m_sortedResults.size()) { 240 while (m_upToDateCount < m_sortedResults.size()) {
241 241
242 int i = m_upToDateCount; 242 int i = m_upToDateCount;
243 243
244 // std::cerr << "sorted size = " << m_sortedResults.size() << std::endl; 244 // cerr << "sorted size = " << m_sortedResults.size() << endl;
245 245
246 TransformDescription desc; 246 TransformDescription desc;
247 TransformId tid = m_sortedResults[i].key; 247 TransformId tid = m_sortedResults[i].key;
248 TransformFactory *factory = TransformFactory::getInstance(); 248 TransformFactory *factory = TransformFactory::getInstance();
249 TransformFactory::TransformInstallStatus status = 249 TransformFactory::TransformInstallStatus status =
316 316
317 m_labels[i]->setObjectName(desc.identifier); 317 m_labels[i]->setObjectName(desc.identifier);
318 m_labels[i]->setFixedWidth(this->width() - 40); 318 m_labels[i]->setFixedWidth(this->width() - 40);
319 m_labels[i]->setUnselectedText(labelText); 319 m_labels[i]->setUnselectedText(labelText);
320 320
321 // std::cerr << "selected text: " << selectedText << std::endl; 321 // cerr << "selected text: " << selectedText << endl;
322 m_labels[i]->setSelectedText(selectedText); 322 m_labels[i]->setSelectedText(selectedText);
323 323
324 m_labels[i]->setSelected(m_selectedTransform == desc.identifier); 324 m_labels[i]->setSelected(m_selectedTransform == desc.identifier);
325 325
326 if (!m_labels[i]->isVisible()) m_labels[i]->show(); 326 if (!m_labels[i]->isVisible()) m_labels[i]->show();
348 if (m_labels[i]->isSelected()) { 348 if (m_labels[i]->isSelected()) {
349 m_labels[i]->setSelected(false); 349 m_labels[i]->setSelected(false);
350 } 350 }
351 } 351 }
352 } 352 }
353 std::cerr << "selectedLabelChanged: selected transform is now \"" 353 cerr << "selectedLabelChanged: selected transform is now \""
354 << m_selectedTransform << "\"" << std::endl; 354 << m_selectedTransform << "\"" << endl;
355 } 355 }
356 356
357 void 357 void
358 TransformFinder::labelDoubleClicked() 358 TransformFinder::labelDoubleClicked()
359 { 359 {