added add label action

This commit is contained in:
Luis Ángel San Martín
2014-10-29 23:53:35 +01:00
parent 741c88c690
commit 3b1ca917aa
5 changed files with 19 additions and 0 deletions

View File

@ -198,6 +198,9 @@ void LibraryWindow::doLayout()
readingListsTitle->addAction(addReadingListAction);
readingListsTitle->addAction(deleteReadingListAction);
readingListsTitle->addSepartor();
readingListsTitle->addAction(addLabelAction);
readingListsTitle->addSpacing(3);
//FINAL LAYOUT-------------------------------------------------------------
comicsViewStack = new QStackedWidget();
@ -338,6 +341,13 @@ void LibraryWindow::setUpShortcutsManagement()
<< updateCurrentFolderAction);
allActions << tmpList;
editShortcutsDialog->addActionsGroup("Lists",QIcon(":/images/shortcuts_group_folders.png"), //TODO change icon
tmpList = QList<QAction *>()
<< addReadingListAction
<< deleteReadingListAction
<< addLabelAction);
allActions << tmpList;
editShortcutsDialog->addActionsGroup("General",QIcon(":/images/shortcuts_group_general.png"),
tmpList = QList<QAction *>()
<< backAction
@ -703,6 +713,12 @@ void LibraryWindow::createActions()
deleteReadingListAction->setToolTip(tr("Remove current reading list from the library"));
deleteReadingListAction->setIcon(QIcon(":/images/delete_sidebar.png"));
addLabelAction = new QAction(tr("Add new label"), this);
addLabelAction->setData(ADD_LABEL_ACTION_YL);
addLabelAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(ADD_LABEL_ACTION_YL));
addLabelAction->setToolTip(tr("Add a new label to this library"));
addLabelAction->setIcon(QIcon(":/images/addLabelIcon.png"));
//disable actions
disableAllActions();
}