Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 737e7469 rédigé par Kubat's avatar Kubat Validation de Elliu
Parcourir les fichiers

FIX: The Qt module now builds

parent c1c36e4a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!186Add the Qt window module as an alternative to the SDL2 module
......@@ -58,17 +58,17 @@ MpvWidget::~MpvWidget()
void MpvWidget::command(const QVariant& params)
{
mpv::qt::command_variant(mpv, params);
mpv::qt::command(mpv, params);
}
void MpvWidget::setProperty(const QString& name, const QVariant& value)
{
mpv::qt::set_property_variant(mpv, name, value);
mpv::qt::set_property(mpv, name, value);
}
QVariant MpvWidget::getProperty(const QString &name) const
{
return mpv::qt::get_property_variant(mpv, name);
return mpv::qt::get_property(mpv, name);
}
void MpvWidget::initializeGL()
......
......@@ -247,8 +247,10 @@ static inline int set_property_variant(mpv_handle *ctx, const QString &name,
* Set the given option as mpv_node converted from the QVariant argument.
*
* @ deprecated use set_property() instead
*
* @note Don't set as deprecated because `set_property` doesn't seem to do the
* same thing...
*/
[[deprecated]]
static inline int set_option_variant(mpv_handle *ctx, const QString &name,
const QVariant &v)
{
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter