Fix all compilation issues after enabling QT_DISABLE_DEPRECATED_UP_TO

This commit is contained in:
luisangelsm
2026-03-30 15:48:02 +02:00
parent 12a5949b16
commit e6cbfa634b
49 changed files with 227 additions and 204 deletions

View File

@ -81,12 +81,10 @@ void ComicsView::dragEnterEvent(QDragEnterEvent *event)
event->acceptProposedAction();
else {
QLOG_TRACE() << "dragEnterEvent";
QList<QUrl> urlList;
if (event->mimeData()->hasUrls() && event->dropAction() == Qt::CopyAction) {
urlList = event->mimeData()->urls();
const auto urlList = event->mimeData()->urls();
QString currentPath;
foreach (QUrl url, urlList) {
for (const auto &url : urlList) {
// comics or folders are accepted, folders' content is validate in dropEvent (avoid any lag before droping)
currentPath = url.toLocalFile();
if (Comic::fileIsComic(currentPath) || QFileInfo(currentPath).isDir()) {