mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
Added a new action for showing, hiding QML ComicInfo view into the GridView.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user