TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicglobalhotkeyedit.cpp
Go to the documentation of this file.
2 #include "musichotkeymanager.h"
3 
4 #include <QKeyEvent>
5 
7  : QLineEdit(parent)
8 {
9  setReadOnly(true);
10 }
11 
13 {
14  setEnabled(state);
15  setReadOnly(!state);
16 }
17 
19 {
20  setText(G_HOTKEY_PTR->toString(event->key(), event->modifiers()));
21 }
#define G_HOTKEY_PTR
MusicGlobalHotKeyEdit(QWidget *parent=nullptr)
virtual void keyPressEvent(QKeyEvent *event) overridefinal
void setHotKeyEnabled(bool state)
state
Definition: http_parser.c:279