Mercurial > hg > svgui
comparison widgets/TransformFinder.cpp @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | c8a6fd3f9dff |
children | d39db4673676 |
comparison
equal
deleted
inserted
replaced
1413:0930a27ebea2 | 1414:fa986b91d77f |
---|---|
30 #include <QTimer> | 30 #include <QTimer> |
31 #include <QAction> | 31 #include <QAction> |
32 | 32 |
33 TransformFinder::TransformFinder(QWidget *parent) : | 33 TransformFinder::TransformFinder(QWidget *parent) : |
34 QDialog(parent), | 34 QDialog(parent), |
35 m_resultsFrame(0), | 35 m_resultsFrame(nullptr), |
36 m_resultsLayout(0) | 36 m_resultsLayout(nullptr) |
37 { | 37 { |
38 setWindowTitle(tr("Find a Transform")); | 38 setWindowTitle(tr("Find a Transform")); |
39 | 39 |
40 QGridLayout *mainGrid = new QGridLayout; | 40 QGridLayout *mainGrid = new QGridLayout; |
41 mainGrid->setVerticalSpacing(0); | 41 mainGrid->setVerticalSpacing(0); |
223 } | 223 } |
224 | 224 |
225 if (m_sortedResults.size() < sorted.size()) { | 225 if (m_sortedResults.size() < sorted.size()) { |
226 m_infoLabel->setText | 226 m_infoLabel->setText |
227 (tr("Found %n description(s) containing <b>%1</b>, showing the first %2 only", | 227 (tr("Found %n description(s) containing <b>%1</b>, showing the first %2 only", |
228 0, int(sorted.size())).arg(text).arg(m_sortedResults.size())); | 228 nullptr, int(sorted.size())).arg(text).arg(m_sortedResults.size())); |
229 } else { | 229 } else { |
230 m_infoLabel->setText | 230 m_infoLabel->setText |
231 (tr("Found %n description(s) containing <b>%1</b>", | 231 (tr("Found %n description(s) containing <b>%1</b>", |
232 0, int(sorted.size())).arg(text)); | 232 nullptr, int(sorted.size())).arg(text)); |
233 } | 233 } |
234 | 234 |
235 return; | 235 return; |
236 } | 236 } |
237 | 237 |