mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
Add an initial rhi implementation that mimics the opengl implementation
This commit is contained in:
@ -15,17 +15,17 @@ GoToFlowGL::GoToFlowGL(QWidget *parent, FlowType flowType)
|
||||
: GoToFlowWidget(parent)
|
||||
{
|
||||
Q_UNUSED(flowType)
|
||||
flow = new YACReaderPageFlowGL(this);
|
||||
flow = new YACReaderPageFlowImpl(this);
|
||||
flow->setShowMarks(false);
|
||||
|
||||
imageSize = Configuration::getConfiguration().getGotoSlideSize();
|
||||
|
||||
flow->setSlideSize(imageSize);
|
||||
connect(flow, &YACReaderFlowGL::centerIndexChanged, this, &GoToFlowWidget::setPageNumber);
|
||||
connect(flow, &YACReaderFlowGL::selected, this, &GoToFlowGL::goToPage);
|
||||
connect(flow, &YACReaderPageFlowImpl::centerIndexChanged, this, &GoToFlowWidget::setPageNumber);
|
||||
connect(flow, &YACReaderPageFlowImpl::selected, this, &GoToFlowGL::goToPage);
|
||||
|
||||
connect(toolBar, &GoToFlowToolBar::goToPage, this, &GoToFlowGL::goToPage);
|
||||
connect(toolBar, &GoToFlowToolBar::setCenter, flow, &YACReaderFlowGL::setCenterIndex);
|
||||
connect(toolBar, &GoToFlowToolBar::setCenter, flow, &YACReaderPageFlowImpl::setCenterIndex);
|
||||
|
||||
mainLayout->addWidget(flow);
|
||||
toolBar->raise();
|
||||
|
||||
Reference in New Issue
Block a user