Changeset View
Changeset View
Standalone View
Standalone View
designer/videoplayertaskmenu.h
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | |||||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | class VideoPlayerTaskMenu: public QObject, public QDesignerTaskMenuExtension | 77 | class VideoPlayerTaskMenu: public QObject, public QDesignerTaskMenuExtension | ||
78 | { | 78 | { | ||
79 | Q_OBJECT | 79 | Q_OBJECT | ||
80 | Q_INTERFACES(QDesignerTaskMenuExtension) | 80 | Q_INTERFACES(QDesignerTaskMenuExtension) | ||
81 | public: | 81 | public: | ||
82 | explicit VideoPlayerTaskMenu(Phonon::VideoPlayer *object, QObject *parent = 0); | 82 | explicit VideoPlayerTaskMenu(Phonon::VideoPlayer *object, QObject *parent = 0); | ||
83 | virtual QList<QAction*> taskActions() const; | 83 | virtual QList<QAction*> taskActions() const override; | ||
84 | 84 | | |||
85 | private slots: | 85 | private slots: | ||
86 | void slotLoad(); | 86 | void slotLoad(); | ||
87 | void slotMimeTypes(); | 87 | void slotMimeTypes(); | ||
88 | void mediaObjectStateChanged(Phonon::State newstate, Phonon::State oldstate); | 88 | void mediaObjectStateChanged(Phonon::State newstate, Phonon::State oldstate); | ||
89 | 89 | | |||
90 | private: | 90 | private: | ||
91 | Phonon::VideoPlayer *m_widget; | 91 | Phonon::VideoPlayer *m_widget; | ||
Show All 9 Lines | |||||
101 | class VideoPlayerTaskMenuFactory : public QExtensionFactory | 101 | class VideoPlayerTaskMenuFactory : public QExtensionFactory | ||
102 | { | 102 | { | ||
103 | Q_OBJECT | 103 | Q_OBJECT | ||
104 | public: | 104 | public: | ||
105 | VideoPlayerTaskMenuFactory(QExtensionManager *parent = 0); | 105 | VideoPlayerTaskMenuFactory(QExtensionManager *parent = 0); | ||
106 | 106 | | |||
107 | protected: | 107 | protected: | ||
108 | QObject *createExtension(QObject *object, | 108 | QObject *createExtension(QObject *object, | ||
109 | const QString &iid, QObject *parent) const; | 109 | const QString &iid, QObject *parent) const override; | ||
110 | }; | 110 | }; | ||
111 | 111 | | |||
112 | #endif // VIDEOPLAYERTASKMENU_H | 112 | #endif // VIDEOPLAYERTASKMENU_H |