Support drag&drop for setting a custom cover in the properties dialog

This commit is contained in:
Luis Ángel San Martín
2025-05-09 19:58:52 +02:00
parent 28952180ab
commit 8b159c9da6
7 changed files with 115 additions and 5 deletions

View File

@ -19,6 +19,10 @@ class QComboBox;
// class YACReaderBusyWidget;
class QToolButton;
namespace YACReader {
class CoverLabel;
}
#include "comic_db.h"
class PropertiesDialog : public QDialog
@ -33,7 +37,7 @@ private:
QTabWidget *tabBar;
QWidget *coverBox;
QLabel *cover;
YACReader::CoverLabel *cover;
QScrollArea *sa;
QWidget *generalInfoBox;
@ -175,6 +179,7 @@ public slots:
void loadPreviousCover();
void resetCover();
void loadCustomCoverImage();
void loadCustomCoverImageFromPath(const QString &path);
void setCoverPage(int pageNumber);
bool close();