mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Wrap functionality
This commit is contained in:
parent
2093c072b6
commit
928afa4675
@ -2259,7 +2259,7 @@ void LibraryWindow::toFullScreen()
|
|||||||
setGeometry(r);
|
setGeometry(r);
|
||||||
show();
|
show();
|
||||||
|
|
||||||
contentViewsManager->comicsView->toFullScreen();
|
contentViewsManager->toFullscreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LibraryWindow::toNormal()
|
void LibraryWindow::toNormal()
|
||||||
@ -2275,7 +2275,7 @@ void LibraryWindow::toNormal()
|
|||||||
if (fromMaximized)
|
if (fromMaximized)
|
||||||
showMaximized();
|
showMaximized();
|
||||||
|
|
||||||
contentViewsManager->comicsView->toNormal();
|
contentViewsManager->toNormal();
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
@ -2287,7 +2287,7 @@ void LibraryWindow::toFullScreen()
|
|||||||
sideBar->hide();
|
sideBar->hide();
|
||||||
libraryToolBar->hide();
|
libraryToolBar->hide();
|
||||||
|
|
||||||
contentViewsManager->comicsView->toFullScreen();
|
contentViewsManager->toFullScreen();
|
||||||
|
|
||||||
showFullScreen();
|
showFullScreen();
|
||||||
}
|
}
|
||||||
@ -2296,7 +2296,7 @@ void LibraryWindow::toNormal()
|
|||||||
{
|
{
|
||||||
sideBar->show();
|
sideBar->show();
|
||||||
|
|
||||||
contentViewsManager->comicsView->toNormal();
|
contentViewsManager->toNormal();
|
||||||
|
|
||||||
if (fromMaximized)
|
if (fromMaximized)
|
||||||
showMaximized();
|
showMaximized();
|
||||||
|
@ -79,6 +79,22 @@ void YACReaderContentViewsManager::updateContinueReadingView()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void YACReaderContentViewsManager::toFullscreen()
|
||||||
|
{
|
||||||
|
if (comicsViewStack->currentWidget() == comicsView) {
|
||||||
|
comicsView->toFullScreen();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void YACReaderContentViewsManager::toNormal()
|
||||||
|
{
|
||||||
|
if (comicsViewStack->currentWidget() == comicsView) {
|
||||||
|
comicsView->toNormal();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void YACReaderContentViewsManager::showComicsView()
|
void YACReaderContentViewsManager::showComicsView()
|
||||||
{
|
{
|
||||||
comicsViewStack->setCurrentWidget(comicsView);
|
comicsViewStack->setCurrentWidget(comicsView);
|
||||||
|
@ -42,6 +42,9 @@ public:
|
|||||||
void updateCurrentComicView();
|
void updateCurrentComicView();
|
||||||
void updateContinueReadingView();
|
void updateContinueReadingView();
|
||||||
|
|
||||||
|
void toFullscreen();
|
||||||
|
void toNormal();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QStackedWidget *comicsViewStack;
|
QStackedWidget *comicsViewStack;
|
||||||
LibraryWindow *libraryWindow;
|
LibraryWindow *libraryWindow;
|
||||||
|
Loading…
Reference in New Issue
Block a user