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
14
class
MIAMCORE_LIBRARY
StopButton
:
public
MediaButton
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
MediaButton
The MediaButton class is useful for buttons like "Play", "Stop", etc.
Definition:
mediabutton.h:13
mediaplayer.h
mediabutton.h
MIAMCORE_LIBRARY
#define MIAMCORE_LIBRARY
Definition:
miamcore_global.h:11
StopButton
The StopButton class is a custom class for the Stop button only.
Definition:
stopbutton.h:14
MediaPlayer
The MediaPlayer class is a central class which controls local and remote sources. ...
Definition:
mediaplayer.h:22
src
core
mediabuttons
stopbutton.h
Generated on Thu Mar 23 2017 19:56:53 for Miam-Player by
1.8.13