Browse Source

qt: introduce `MLItemId::isValid()`

pull/200/head
Fatih Uzunoglu 8 months ago
committed by Steve Lhomme
parent
commit
6d2de733b4
  1. 4
      modules/gui/qt/medialibrary/mlqmltypes.hpp

4
modules/gui/qt/medialibrary/mlqmltypes.hpp

@ -62,6 +62,10 @@ public:
int64_t id;
vlc_ml_parent_type type;
Q_INVOKABLE bool isValid() const {
return (id != INVALID_MLITEMID_ID);
}
Q_INVOKABLE constexpr bool hasParent() const {
return (type != VLC_ML_PARENT_UNKNOWN);
}

Loading…
Cancel
Save