mirror of
https://github.com/YACReader/yacreader
synced 2025-07-25 08:25:03 -04:00
limited QTBUG-41883 patch scope to Windows
This commit is contained in:
@ -2083,6 +2083,8 @@ void LibraryWindow::toggleFullScreen()
|
||||
fullscreen = !fullscreen;
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
|
||||
//QTBUG-41883
|
||||
void LibraryWindow::toFullScreen()
|
||||
{
|
||||
@ -2137,6 +2139,45 @@ void LibraryWindow::toNormal()
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void LibraryWindow::toFullScreen()
|
||||
{
|
||||
fromMaximized = this->isMaximized();
|
||||
|
||||
sideBar->hide();
|
||||
libraryToolBar->hide();
|
||||
|
||||
comicsView->toFullScreen();
|
||||
|
||||
showFullScreen();
|
||||
}
|
||||
|
||||
void LibraryWindow::toNormal()
|
||||
{
|
||||
sideBar->show();
|
||||
|
||||
comicsView->toNormal();
|
||||
|
||||
if(fromMaximized)
|
||||
showMaximized();
|
||||
else
|
||||
showNormal();
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
QTimer * timer = new QTimer();
|
||||
timer->setSingleShot(true);
|
||||
timer->start();
|
||||
connect(timer,SIGNAL(timeout()),libraryToolBar,SLOT(show()));
|
||||
connect(timer,SIGNAL(timeout()),timer,SLOT(deleteLater()));
|
||||
#else
|
||||
libraryToolBar->show();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void LibraryWindow::setSearchFilter(const YACReader::SearchModifiers modifier, QString filter)
|
||||
{
|
||||
if(!filter.isEmpty())
|
||||
|
Reference in New Issue
Block a user