Code style.
This commit is contained in:
parent
920e6fc8ab
commit
8b966019e6
|
@ -46,10 +46,7 @@ DialogFinalMeasurements::DialogFinalMeasurements(VPattern *doc, QWidget *parent)
|
|||
ui(new Ui::DialogFinalMeasurements),
|
||||
m_doc(doc),
|
||||
m_data(doc->GetCompleteData()),
|
||||
m_measurements(doc->GetFinalMeasurements()),
|
||||
m_search(),
|
||||
formulaBaseHeight(0),
|
||||
m_isInitialized(false)
|
||||
m_measurements(doc->GetFinalMeasurements())
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
|
|
@ -75,9 +75,9 @@ private:
|
|||
VPattern *m_doc;
|
||||
VContainer m_data;
|
||||
QVector<VFinalMeasurement> m_measurements;
|
||||
QSharedPointer<VTableSearch> m_search;
|
||||
int formulaBaseHeight;
|
||||
bool m_isInitialized;
|
||||
QSharedPointer<VTableSearch> m_search{};
|
||||
int formulaBaseHeight{0};
|
||||
bool m_isInitialized{false};
|
||||
|
||||
void FillFinalMeasurements(bool freshCall = false);
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ QList<QTableWidgetItem *> VTableSearch::FindTableItems(const QString& term)
|
|||
{
|
||||
if (term.isEmpty())
|
||||
{
|
||||
return QList<QTableWidgetItem *>();
|
||||
return {};
|
||||
}
|
||||
|
||||
if (term.startsWith(QChar('/')))
|
||||
|
@ -122,7 +122,7 @@ QList<QTableWidgetItem *> VTableSearch::FindTableItems(const QString& term)
|
|||
#endif
|
||||
}
|
||||
|
||||
return QList<QTableWidgetItem *>();
|
||||
return {};
|
||||
}
|
||||
|
||||
return table->findItems(term, Qt::MatchContains);
|
||||
|
@ -139,7 +139,7 @@ void VTableSearch::Find(const QString &term)
|
|||
|
||||
if (not searchList.isEmpty())
|
||||
{
|
||||
for (auto item : qAsConst(searchList))
|
||||
for (auto *item : qAsConst(searchList))
|
||||
{
|
||||
item->setBackground(Qt::yellow);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user