File indexing completed on 2024-05-12 04:51:53
0001 /* 0002 SPDX-FileCopyrightText: 2009 Michal Malek <michalm@jabster.pl> 0003 SPDX-FileCopyrightText: 1998-2008 Sebastian Trueg <trueg@k3b.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef _K3B_VIDEODVDTITLEDELEGATE_H_ 0009 #define _K3B_VIDEODVDTITLEDELEGATE_H_ 0010 0011 #include <QStyledItemDelegate> 0012 0013 namespace K3b { 0014 0015 class VideoDVDTitleDelegate : public QStyledItemDelegate 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 explicit VideoDVDTitleDelegate( QObject* parent = 0 ); 0021 ~VideoDVDTitleDelegate() override; 0022 void paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const override; 0023 QSize sizeHint( const QStyleOptionViewItem& option, const QModelIndex& index ) const override; 0024 0025 protected: 0026 void initStyleOption( QStyleOptionViewItem* option, const QModelIndex& index ) const override; 0027 }; 0028 0029 } // namespace K3b 0030 0031 #endif // _K3B_VIDEODVDTITLEDELEGATE_H_