mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Enabled context menut and double click for opening in comic info view.
This commit is contained in:
@ -81,8 +81,9 @@ void InfoComicsView::setModel(ComicModel *model)
|
||||
ctxt->setContextProperty("backgroundImage", QUrl());
|
||||
|
||||
ctxt->setContextProperty("comicsSelection", selectionHelper->selectionModel());
|
||||
/*ctxt->setContextProperty("contextMenuHelper",this);
|
||||
ctxt->setContextProperty("comicsSelectionHelper", this);
|
||||
ctxt->setContextProperty("contextMenuHelper",this);
|
||||
ctxt->setContextProperty("currentIndexHelper", this);
|
||||
/*ctxt->setContextProperty("comicsSelectionHelper", this);
|
||||
ctxt->setContextProperty("comicRatingHelper", this);
|
||||
ctxt->setContextProperty("dummyValue", true);
|
||||
ctxt->setContextProperty("dragManager", this);*/
|
||||
@ -188,3 +189,13 @@ void InfoComicsView::droppedFiles(const QList<QUrl> &urls, Qt::DropAction action
|
||||
emit copyComicsToCurrentFolder(droppedFiles);
|
||||
}
|
||||
}
|
||||
|
||||
void InfoComicsView::requestedContextMenu(const QPoint &point)
|
||||
{
|
||||
emit customContextMenuViewRequested(point);
|
||||
}
|
||||
|
||||
void InfoComicsView::selectedItem(int index)
|
||||
{
|
||||
emit selected(index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user