mirror of
https://github.com/YACReader/yacreader
synced 2025-07-20 14:04:40 -04:00
add to favorites is ready
This commit is contained in:
@ -81,6 +81,7 @@
|
||||
#include "add_label_dialog.h"
|
||||
|
||||
#include "yacreader_history_controller.h"
|
||||
#include "db_helper.h"
|
||||
|
||||
#include "QsLog.h"
|
||||
|
||||
@ -1203,6 +1204,10 @@ void LibraryWindow::createConnections()
|
||||
connect(deleteReadingListAction,SIGNAL(triggered()),this,SLOT(deleteSelectedReadingList()));
|
||||
connect(addLabelAction,SIGNAL(triggered()),this,SLOT(showAddNewLabelDialog()));
|
||||
connect(renameListAction,SIGNAL(triggered()),this,SLOT(showRenameCurrentList()));
|
||||
|
||||
//--
|
||||
|
||||
connect(addToFavoritesAction,SIGNAL(triggered()),this,SLOT(addSelectedComicsToFavorites()));
|
||||
}
|
||||
|
||||
void LibraryWindow::loadLibrary(const QString & name)
|
||||
@ -1681,6 +1686,12 @@ void LibraryWindow::showRenameCurrentList()
|
||||
|
||||
}
|
||||
|
||||
void LibraryWindow::addSelectedComicsToFavorites()
|
||||
{
|
||||
QModelIndexList indexList = getSelectedComics();
|
||||
comicsModel->addComicsToFavorites(indexList);
|
||||
}
|
||||
|
||||
void LibraryWindow::selectSubfolder(const QModelIndex &mi, int child)
|
||||
{
|
||||
QModelIndex dest = foldersModel->index(child,0,mi);
|
||||
|
Reference in New Issue
Block a user