limited QTBUG-41883 patch scope to Windows

This commit is contained in:
Luis Ángel San Martín
2015-02-10 19:47:40 +01:00
parent 9730e6daeb
commit b3452f9b8b
2 changed files with 78 additions and 0 deletions

View File

@ -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())