File indexing completed on 2024-05-05 04:48:35

0001 /****************************************************************************************
0002  * Copyright (c) 2010 Sergey Ivanov <123kash@gmail.com>                                 *
0003  * Copyright (c) 2013 Alberto Villa <avilla@FreeBSD.org>                                *
0004  *                                                                                      *
0005  * This program is free software; you can redistribute it and/or modify it under        *
0006  * the terms of the GNU General Public License as published by the Free Software        *
0007  * Foundation; either version 2 of the License, or (at your option) any later           *
0008  * version.                                                                             *
0009  *                                                                                      *
0010  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0011  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0012  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0013  *                                                                                      *
0014  * You should have received a copy of the GNU General Public License along with         *
0015  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0016  ****************************************************************************************/
0017 
0018 #ifndef MUSICBRAINZTAGSMODELDELEGATE_H
0019 #define MUSICBRAINZTAGSMODELDELEGATE_H
0020 
0021 #include <QItemDelegate>
0022 
0023 class MusicBrainzTagsModelDelegate : public QItemDelegate
0024 {
0025     public:
0026         explicit MusicBrainzTagsModelDelegate( QObject *parent = nullptr );
0027 
0028     protected:
0029         void drawCheck( QPainter *painter, const QStyleOptionViewItem &option,
0030                                 const QRect &rect, Qt::CheckState state ) const override;
0031 };
0032 
0033 #endif // MUSICBRAINZTAGSMODELDELEGATE_H