mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Fix problems with missing safety checks in Render::fillBuffer and pdfcomic
This commit is contained in:
36
YACReaderLibrary/yacreader_folders_view.h
Normal file
36
YACReaderLibrary/yacreader_folders_view.h
Normal file
@ -0,0 +1,36 @@
|
||||
#ifndef YACREADER_FOLDERS_VIEW_H
|
||||
#define YACREADER_FOLDERS_VIEW_H
|
||||
|
||||
#include "yacreader_treeview.h"
|
||||
|
||||
#include <QtWidgets>
|
||||
|
||||
class YACReaderFoldersView : public YACReaderTreeView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderFoldersView(QWidget * parent = 0);
|
||||
|
||||
signals:
|
||||
//Drops
|
||||
void copyComicsToFolder(QList<QPair<QString,QString> >,QModelIndex);
|
||||
void moveComicsToFolder(QList<QPair<QString,QString> >,QModelIndex);
|
||||
|
||||
protected:
|
||||
//Drop to import
|
||||
void dragEnterEvent(QDragEnterEvent *event);
|
||||
void dragLeaveEvent(QDragLeaveEvent *event);
|
||||
void dragMoveEvent(QDragMoveEvent *event);
|
||||
void dropEvent(QDropEvent *event);
|
||||
};
|
||||
|
||||
class YACReaderFoldersViewItemDeletegate: public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderFoldersViewItemDeletegate(QObject *parent = 0);
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
};
|
||||
|
||||
|
||||
#endif // YACREADER_FOLDERS_VIEW_H
|
Reference in New Issue
Block a user