Merge pull request #4974 from TheUbuntuGuy/master

Bask in his glory on multiple monitors
This commit is contained in:
John Maguire 2015-08-03 13:24:50 +01:00
commit 66be5bf144
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include "ui/albumcoverchoicecontroller.h"
#include "ui/iconloader.h"
#include <QDesktopWidget>
#include <QMenu>
#include <QMovie>
#include <QPainter>
@ -653,7 +654,10 @@ void NowPlayingWidget::SearchCoverAutomatically() {
}
void NowPlayingWidget::Bask() {
QDesktopWidget desktop;
int current_screen = desktop.screenNumber(this);
big_hypnotoad_.reset(new FullscreenHypnotoad);
big_hypnotoad_->setGeometry(desktop.screenGeometry(current_screen));
big_hypnotoad_->showFullScreen();
}