Added a new action for showing, hiding QML ComicInfo view into the GridView.

This commit is contained in:
Luis Ángel San Martín
2016-04-16 22:40:42 +02:00
parent ba5dfc0807
commit 28b5a29da9
7 changed files with 51 additions and 30 deletions

View File

@ -88,8 +88,6 @@ ClassicComicsView::ClassicComicsView(QWidget *parent)
sVertical->restoreState(settings->value(COMICS_VIEW_FLOW_SPLITTER_STATUS).toByteArray());
//hide flow widgets
toolBarStretch = new YACReaderToolBarStretch(this);
hideFlowViewAction = new QAction(this);
hideFlowViewAction->setText(tr("Hide comic flow"));
hideFlowViewAction->setData(HIDE_COMIC_VIEW_ACTION_YL);
@ -127,6 +125,8 @@ void ClassicComicsView::setToolBar(QToolBar *toolBar)
static_cast<QVBoxLayout *>(comics->layout())->insertWidget(0,toolBar);
this->toolbar = toolBar;
toolBarStretch = new YACReaderToolBarStretch(this);
toolBarStretchAction = toolBar->addWidget(toolBarStretch);
toolBar->addAction(hideFlowViewAction);
}