Miam-Player  0.8.0
A nice music player
NoFocusItemDelegate Class Reference

The NoFocusItemDelegate class cancel drawFocus method. More...

#include <nofocusitemdelegate.h>

Inheritance diagram for NoFocusItemDelegate:

Public Member Functions

 NoFocusItemDelegate (QWidget *parent=nullptr)
 

Protected Member Functions

void drawFocus (QPainter *, const QStyleOptionViewItem &, const QRect &) const
 

Detailed Description

The NoFocusItemDelegate class cancel drawFocus method.

This class does only one thing: ignore the "focus dotted rectangle" when a cell (or a row) is selected in a view.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

NoFocusItemDelegate::NoFocusItemDelegate ( QWidget *  parent = nullptr)
inline

Member Function Documentation

void NoFocusItemDelegate::drawFocus ( QPainter *  ,
const QStyleOptionViewItem &  ,
const QRect &   
) const
inlineprotected

Redefined as empty to remove the dotted rectangle when selecting an item.


The documentation for this class was generated from the following file: