Miam-Player  0.8.0
A nice music player
nofocusitemdelegate.h
Go to the documentation of this file.
1 #ifndef NOFOCUSITEMDELEGATE_H
2 #define NOFOCUSITEMDELEGATE_H
3 
4 #include <QItemDelegate>
5 #include <QPainter>
6 
8 
16 class MIAMTABPLAYLISTS_LIBRARY NoFocusItemDelegate : public QItemDelegate
17 {
18  Q_OBJECT
19 public:
20  NoFocusItemDelegate(QWidget *parent = nullptr) : QItemDelegate(parent) {}
21 
22 protected:
24  inline void drawFocus(QPainter *, const QStyleOptionViewItem &, const QRect &) const {}
25 };
26 
27 #endif // NOFOCUSITEMDELEGATE_H
NoFocusItemDelegate(QWidget *parent=nullptr)
Definition: nofocusitemdelegate.h:20
void drawFocus(QPainter *, const QStyleOptionViewItem &, const QRect &) const
Definition: nofocusitemdelegate.h:24
The NoFocusItemDelegate class cancel drawFocus method.
Definition: nofocusitemdelegate.h:16
#define MIAMTABPLAYLISTS_LIBRARY
Definition: miamtabplaylists_global.hpp:8