MythTV master
playlistview.cpp
Go to the documentation of this file.
1#include <iostream>
2
3// qt
4#include <QKeyEvent>
5
6// MythTV
9
10// mythmusic
11#include "musiccommon.h"
12#include "playlistview.h"
13
15 :MusicCommon(parent, parentScreen, "playlistview")
16{
18}
19
21{
22 // Load the theme for this screen
23 bool err = LoadWindowFromXML("music-ui.xml", "playlistview", this);
24
25 if (!err)
26 return false;
27
28 // find common widgets available on any view
29 err = CreateCommon();
30
31 if (err)
32 {
33 LOG(VB_GENERAL, LOG_ERR, "Cannot load screen 'playlisteditorview'");
34 return false;
35 }
36
38
39 return true;
40}
41
42void PlaylistView::customEvent(QEvent *event)
43{
45}
46
47bool PlaylistView::keyPressEvent(QKeyEvent *event)
48{
50 return true;
51
52 bool handled = false;
53
55 handled = true;
56
57 return handled;
58}
bool m_moveTrackMode
Definition: musiccommon.h:152
MusicView m_currentView
Definition: musiccommon.h:141
bool CreateCommon(void)
Definition: musiccommon.cpp:78
bool keyPressEvent(QKeyEvent *e) override
Key event handler.
void customEvent(QEvent *event) override
Screen in which all other widgets are contained and rendered.
void BuildFocusList(void)
MythUIType * GetFocusWidget(void) const
void customEvent(QEvent *event) override
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
PlaylistView(MythScreenStack *parent, MythScreenType *parentScreen)
bool Create(void) override
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
@ MV_PLAYLIST
Definition: musiccommon.h:33
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:39