Skip to content

Commit

Permalink
Use QDesktopWidget::screenCount() in place of QDesktopWidget::numScre…
Browse files Browse the repository at this point in the history
…ens() under Qt5 (method rename).
  • Loading branch information
daniel-kristjansson authored and jyavenard committed Mar 8, 2013
1 parent f039111 commit 45204ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mythtv/libs/libmythtv/videooutwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,13 @@ VideoOutWindow::VideoOutWindow() :
if (using_xinerama)
{
screen_num = gCoreContext->GetNumSetting("XineramaScreen", screen_num);
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
if (screen_num >= desktop->numScreens())
screen_num = 0;
#else
if (screen_num >= desktop->screenCount())
screen_num = 0;
#endif
}

screen_geom = desktop->geometry();
Expand Down

0 comments on commit 45204ae

Please sign in to comment.