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

Don't use nullptr as flag value

parent 156ac07d
......@@ -64,7 +64,7 @@ Qt::ItemFlags PlotsModel::flags(const QModelIndex & index) const
if(index.isValid())
return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable | Qt::ItemIsEditable;
else
return nullptr;
return Qt::NoItemFlags;
}
QVariant PlotsModel::headerData(int section, Qt::Orientation orientation, int role) const
......
......@@ -107,7 +107,7 @@ QStringList Graph2DMobile::addFunction(const QString& expression, const QSharedP
void Graph2DMobile::setTicksShownAtAll(bool shown)
{
Qt::Orientations show = shown ? Qt::Vertical|Qt::Horizontal : Qt::Orientations(nullptr);
Qt::Orientations show = shown ? Qt::Vertical|Qt::Horizontal : Qt::Orientations(0);
setShowTicks(show);
setShowTickLabels(show);
}
......
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