Miam-Player  0.8.0
A nice music player
stopbutton.h
Go to the documentation of this file.
1 #ifndef STOPBUTTON_H
2 #define STOPBUTTON_H
3 
4 #include "mediabutton.h"
5 #include "mediaplayer.h"
6 
7 #include <QMenu>
8 
15 {
16  Q_OBJECT
17 private:
18  QMenu _menu;
19  MediaPlayer *_mediaPlayer;
20 
21 public:
22  explicit StopButton(QWidget *parent = nullptr);
23 
24  void setMediaPlayer(MediaPlayer *mediaPlayer);
25 
26 protected:
27  virtual void contextMenuEvent(QContextMenuEvent *) override;
28 };
29 
30 #endif // STOPBUTTON_H
The MediaButton class is useful for buttons like "Play", "Stop", etc.
Definition: mediabutton.h:13
#define MIAMCORE_LIBRARY
Definition: miamcore_global.h:10
The StopButton class is a custom class for the Stop button only.
Definition: stopbutton.h:14
The MediaPlayer class is a central class which controls local and remote sources. ...
Definition: mediaplayer.h:22