Commit b61221e8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use nullptr as flag value

parent c3f904b3
......@@ -169,7 +169,7 @@ Qt::ItemFlags ReadonlyContainerModel::flags(const QModelIndex &index) const
return (Qt::ItemIsEnabled | Qt::ItemIsSelectable);
}
}
return 0;
return Qt::NoItemFlags;
}
int ReadonlyContainerModel::columnCount(const QModelIndex & parent) const
......
......@@ -467,7 +467,7 @@ void EditorWindow::initView()
m_searchWidget->setVisible(Prefs::showSearch());
m_vocabularyView = new VocabularyView(this);
rightLayout->addWidget(m_vocabularyView, 1, 0);
rightLayout->addWidget(m_vocabularyView, 1);
topLayout->addLayout(rightLayout);
}
......
......@@ -101,7 +101,7 @@ void WrittenPracticeValidator::validateAnswer(const QString& answer)
QString correct = m_entry->entry()->translation(m_entry->languageTo())->text();
qDebug() << "Correct answer should be: " << correct;
m_error = 0;
m_error = {};
//Check for empty answers and valid answers first
if (answer.isEmpty()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment