qt: qml: use enum for player controlbar identifier
commit685f4e65d3940093c82481b35ff56bfc70e0470b
authorFatih Uzunoglu <fuzun54@outlook.com>
Thu, 1 Apr 2021 22:22:32 +0000 (2 01:22 +0300)
committerPierre Lamot <pierre@videolabs.io>
Tue, 6 Apr 2021 09:54:15 +0000 (6 11:54 +0200)
treec37164f60e34d7dda531a5de1d0b99a251f9bd50
parentae7ce11d3e2bafa1b7bbd49f82b38c763f0ef6dd
qt: qml: use enum for player controlbar identifier

Instead of using QString as the controlbar profile
model player identifier, use enum (int).

This patch constitutes the second step of the
integration of the new QML toolbar editor and the
refactored profile handling. Before this patch,
Players had to be referred again in the toolbar
editor which is bad for maintenance. Now, when
a player is added to the PlayerIdentifier enum,
Players should refer to the enum for their
identifiers.

Signed-off-by: Pierre Lamot <pierre@videolabs.io>
modules/gui/qt/dialogs/toolbar/controlbar_profile.cpp
modules/gui/qt/dialogs/toolbar/controlbar_profile.hpp
modules/gui/qt/dialogs/toolbar/controlbar_profile_model.cpp
modules/gui/qt/dialogs/toolbar/qml/ToolbarEditor.qml
modules/gui/qt/player/player_controlbar_model.hpp
modules/gui/qt/player/qml/MiniPlayer.qml
modules/gui/qt/player/qml/Player.qml
modules/gui/qt/player/qml/PlayerButtonsLayout.qml