qt/player_controlbar_model: Rename 'Mainplayer' to 'Videoplayer'

This commit is contained in:
Benjamin Arnaud 2022-02-16 18:07:17 +01:00 committed by Hugo Beauzée-Luyssen
parent 999a8e9ad2
commit 282e6ac584
5 changed files with 9 additions and 9 deletions

View File

@ -27,7 +27,7 @@ decltype(ControlbarProfile::m_defaults)
ControlbarProfile::m_defaults =
{
{
PlayerControlbarModel::Mainplayer,
PlayerControlbarModel::Videoplayer,
{
{
{

View File

@ -42,7 +42,7 @@ decltype (ControlbarProfileModel::m_defaults)
N_("Minimalist Style"),
{
{
PlayerControlbarModel::Mainplayer,
PlayerControlbarModel::Videoplayer,
{
{
{
@ -105,7 +105,7 @@ decltype (ControlbarProfileModel::m_defaults)
N_("One-liner Style"),
{
{
PlayerControlbarModel::Mainplayer,
PlayerControlbarModel::Videoplayer,
{
{
{
@ -180,7 +180,7 @@ decltype (ControlbarProfileModel::m_defaults)
N_("Simplest Style"),
{
{
PlayerControlbarModel::Mainplayer,
PlayerControlbarModel::Videoplayer,
{
{
{
@ -234,7 +234,7 @@ decltype (ControlbarProfileModel::m_defaults)
N_("Classic Style"),
{
{
PlayerControlbarModel::Mainplayer,
PlayerControlbarModel::Videoplayer,
{
{
{

View File

@ -26,7 +26,7 @@
decltype (PlayerControlbarModel::playerIdentifierDictionary)
PlayerControlbarModel::playerIdentifierDictionary {
{Mainplayer, N_("Main player")},
{Videoplayer, N_("Video player")},
{Audioplayer, N_("Audio player")},
{Miniplayer, N_("Mini player")}
};

View File

@ -41,12 +41,12 @@ public:
// When there is a need to add a new Player, just
// add its identifier in this enum and set QML buttons layout
// identifier to it. Such as `property int identifier =
// PlayerControlbarModel.Mainplayer`.
// PlayerControlbarModel.Videoplayer`.
// To make it translatable, add a corresponding entry to
// the static member playerIdentifierDictionary which is
// initialized in the source file.
enum PlayerIdentifier {
Mainplayer = 0,
Videoplayer = 0,
Audioplayer,
Miniplayer
};

View File

@ -547,7 +547,7 @@ FocusScope {
onRequestLockUnlockAutoHide: rootPlayer.lockUnlockAutoHide(lock, source)
identifier: (Player.hasVideoOutput) ? PlayerControlbarModel.Mainplayer
identifier: (Player.hasVideoOutput) ? PlayerControlbarModel.Videoplayer
: PlayerControlbarModel.Audioplayer
}
}