mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
31 lines
951 B
C++
31 lines
951 B
C++
#ifndef YACREADER_READING_LISTS_VIEW_H
|
|
#define YACREADER_READING_LISTS_VIEW_H
|
|
|
|
#include "yacreader_treeview.h"
|
|
|
|
#include <QtWidgets>
|
|
|
|
class YACReaderReadingListsView : public YACReaderTreeView
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit YACReaderReadingListsView(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
// Drop to import & internal Drag&Drop for resorting
|
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
|
void dragMoveEvent(QDragMoveEvent *event) override;
|
|
void dropEvent(QDropEvent *event) override;
|
|
};
|
|
|
|
class YACReaderReadingListsViewItemDeletegate : public QStyledItemDelegate
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit YACReaderReadingListsViewItemDeletegate(QObject *parent = nullptr);
|
|
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
|
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
|
};
|
|
|
|
#endif // YACREADER_READING_LISTS_VIEW_H
|