Skip to content

Commit

Permalink
qmlui: fix to build with Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Mar 29, 2022
1 parent ac29d5d commit c83a2f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions qmlui/contextmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,11 @@ void ContextManager::setFixtureSelection(quint32 itemID, int headIndex, bool ena
return;

qDebug() << "[ContextManager] found" << channels.keys().count() << "capabilities";

QMultiHashIterator<int, SceneValue>it(channels);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QHashIterator<int, SceneValue> it(channels);
#else
QMultiHashIterator<int, SceneValue> it(channels);
#endif
while(it.hasNext())
{
it.next();
Expand Down
2 changes: 1 addition & 1 deletion ui/src/videoprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ void VideoWidget::slotMetaDataChanged()
break;
}
}

}
#endif

void VideoWidget::slotPlaybackVideo()
{
int screen = m_video->screen();
Expand Down

0 comments on commit c83a2f1

Please sign in to comment.