File indexing completed on 2024-05-05 04:51:49

0001 /*
0002     SPDX-FileCopyrightText: 2010 Michal Malek <michalm@jabster.pl>
0003     SPDX-FileCopyrightText: 1998-2010 Sebastian Trueg <trueg@k3b.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef K3B_K3BVCDTRACKKEYSDELEGATE_H
0009 #define K3B_K3BVCDTRACKKEYSDELEGATE_H
0010 
0011 #include <QList>
0012 #include <QStyledItemDelegate>
0013 
0014 
0015 namespace K3b {
0016 
0017 class VcdTrack;
0018 
0019 class VcdTrackKeysDelegate : public QStyledItemDelegate
0020 {
0021 public:
0022     explicit VcdTrackKeysDelegate( QList<VcdTrack*>& tracks, QObject* parent = 0 );
0023     ~VcdTrackKeysDelegate() override;
0024     
0025     QWidget* createEditor( QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index ) const override;
0026     void setEditorData( QWidget* editor, const QModelIndex& index ) const override;
0027     void setModelData( QWidget* editor, QAbstractItemModel* model, const QModelIndex& index ) const override;
0028     void updateEditorGeometry( QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index ) const override;
0029     
0030 private:
0031     class Private;
0032     Private* const d;
0033 };
0034 
0035 }
0036 
0037 #endif // K3B_K3BVCDTRACKKEYSDELEGATE_H