Commit 2c8e7782 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use 0/nullptr as flags

parent c88da6e7
......@@ -72,7 +72,7 @@ namespace Breeze
//! flags
Qt::ItemFlags flags(const QModelIndex &index) const override
{
if (!index.isValid()) return nullptr;
if (!index.isValid()) return Qt::NoItemFlags;
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
}
......
......@@ -165,7 +165,7 @@ namespace Breeze
void renderDebugFrame( QPainter*, const QRect& ) const;
//* focus rect
void renderFocusRect( QPainter*, const QRect&, const QColor&, const QColor& outline = QColor(), Sides = 0 ) const;
void renderFocusRect( QPainter*, const QRect&, const QColor&, const QColor& outline = QColor(), Sides = {} ) const;
//* focus line
void renderFocusLine( QPainter*, const QRect&, const QColor& ) const;
......
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