fix(menus): align menus and actions with KDE HIG
This commit is contained in:
1 parent
e7760e22e0
commit
b772f37c07
18 files changed
+170
-47
No files matched your search
@@ -36,6 +36,8 @@ class MpvItem : public MpvAbstractItem
|
||||
Q_PROPERTY(int volume READ volume WRITE setVolume NOTIFY volumeChanged)
|
||||
Q_PROPERTY(int volumeMax READ volumeMax NOTIFY volumeMaxChanged)
|
||||
Q_PROPERTY(bool mute READ mute WRITE setMute NOTIFY muteChanged)
|
||||
Q_PROPERTY(bool subtitleVisible READ subtitleVisible NOTIFY subtitleVisibleChanged)
|
||||
Q_PROPERTY(bool deinterlace READ deinterlace NOTIFY deinterlaceChanged)
|
||||
Q_PROPERTY(double speed READ speed WRITE setSpeed NOTIFY speedChanged)
|
||||
// Chapters of the current file, each a map with title and time (in seconds).
|
||||
Q_PROPERTY(QVariantList chapters READ chapters NOTIFY chaptersChanged)
|
||||
@@ -76,6 +78,8 @@ public:
|
||||
int volumeMax() const;
|
||||
bool mute() const;
|
||||
void setMute(bool mute);
|
||||
bool subtitleVisible() const;
|
||||
bool deinterlace() const;
|
||||
double speed() const;
|
||||
void setSpeed(double speed);
|
||||
QVariantList chapters() const;
|
||||
@@ -116,6 +120,8 @@ Q_SIGNALS:
|
||||
void volumeChanged();
|
||||
void volumeMaxChanged();
|
||||
void muteChanged();
|
||||
void subtitleVisibleChanged();
|
||||
void deinterlaceChanged();
|
||||
void speedChanged();
|
||||
void chaptersChanged();
|
||||
void chapterChanged();
|
||||
@@ -149,6 +155,8 @@ private:
|
||||
int m_volume = 100;
|
||||
int m_volumeMax = 130;
|
||||
bool m_mute = false;
|
||||
bool m_subtitleVisible = true;
|
||||
bool m_deinterlace = false;
|
||||
double m_speed = 1.0;
|
||||
QVariantList m_chapters;
|
||||
int m_chapter = -1;
|
||||
|
||||
Reference in new issue
Block a user