fix(menus): align menus and actions with KDE HIG
This commit is contained in:
1 parent
309801d059
commit
0cd03335f7
18 files changed
+170
-47
No files matched your search
@@ -45,6 +45,8 @@ MpvItem::MpvItem(QQuickItem *parent)
|
||||
observeProperty(QStringLiteral("volume"), MPV_FORMAT_INT64);
|
||||
observeProperty(QStringLiteral("volume-max"), MPV_FORMAT_INT64);
|
||||
observeProperty(QStringLiteral("mute"), MPV_FORMAT_FLAG);
|
||||
observeProperty(QStringLiteral("sub-visibility"), MPV_FORMAT_FLAG);
|
||||
observeProperty(QStringLiteral("deinterlace"), MPV_FORMAT_FLAG);
|
||||
observeProperty(QStringLiteral("speed"), MPV_FORMAT_DOUBLE);
|
||||
observeProperty(QStringLiteral("chapter-list"), MPV_FORMAT_NODE);
|
||||
observeProperty(QStringLiteral("chapter"), MPV_FORMAT_INT64);
|
||||
@@ -258,6 +260,16 @@ bool MpvItem::mute() const
|
||||
return m_mute;
|
||||
}
|
||||
|
||||
bool MpvItem::subtitleVisible() const
|
||||
{
|
||||
return m_subtitleVisible;
|
||||
}
|
||||
|
||||
bool MpvItem::deinterlace() const
|
||||
{
|
||||
return m_deinterlace;
|
||||
}
|
||||
|
||||
void MpvItem::setMute(bool mute)
|
||||
{
|
||||
setPropertyAsync(QStringLiteral("mute"), mute);
|
||||
@@ -414,6 +426,12 @@ void MpvItem::onPropertyChanged(const QString &property, const QVariant &value)
|
||||
} else if (property == u"mute") {
|
||||
m_mute = value.toBool();
|
||||
Q_EMIT muteChanged();
|
||||
} else if (property == u"sub-visibility") {
|
||||
m_subtitleVisible = value.toBool();
|
||||
Q_EMIT subtitleVisibleChanged();
|
||||
} else if (property == u"deinterlace") {
|
||||
m_deinterlace = value.toBool();
|
||||
Q_EMIT deinterlaceChanged();
|
||||
} else if (property == u"speed") {
|
||||
m_speed = value.toDouble();
|
||||
Q_EMIT speedChanged();
|
||||
|
||||
Reference in new issue
Block a user