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

Don't use nullptr as flag value

parent 517463b5
......@@ -114,7 +114,7 @@ QVariant MenuModel::data( const QModelIndex &index, int role ) const
Qt::ItemFlags MenuModel::flags( const QModelIndex &index ) const
{
if ( !index.isValid() ) {
return nullptr;
return Qt::NoItemFlags;
}
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
......
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