TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
TTKModule
TTKWidget
musicWidgetKits
musicglobalhotkeyedit.cpp
Go to the documentation of this file.
1
#include "
musicglobalhotkeyedit.h
"
2
#include "
musichotkeymanager.h
"
3
4
#include <QKeyEvent>
5
6
MusicGlobalHotKeyEdit::MusicGlobalHotKeyEdit
(QWidget *parent)
7
: QLineEdit(parent)
8
{
9
setReadOnly(
true
);
10
}
11
12
void
MusicGlobalHotKeyEdit::setHotKeyEnabled
(
bool
state
)
13
{
14
setEnabled(state);
15
setReadOnly(!state);
16
}
17
18
void
MusicGlobalHotKeyEdit::keyPressEvent
(QKeyEvent *event)
19
{
20
setText(
G_HOTKEY_PTR
->toString(event->key(),
event
->modifiers()));
21
}
G_HOTKEY_PTR
#define G_HOTKEY_PTR
Definition:
musichotkeymanager.h:99
MusicGlobalHotKeyEdit::MusicGlobalHotKeyEdit
MusicGlobalHotKeyEdit(QWidget *parent=nullptr)
Definition:
musicglobalhotkeyedit.cpp:6
musichotkeymanager.h
MusicGlobalHotKeyEdit::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event) overridefinal
Definition:
musicglobalhotkeyedit.cpp:18
musicglobalhotkeyedit.h
MusicGlobalHotKeyEdit::setHotKeyEnabled
void setHotKeyEnabled(bool state)
Definition:
musicglobalhotkeyedit.cpp:12
state
state
Definition:
http_parser.c:279
Generated on Tue Jan 21 2025 21:07:14 for TTKMusicPlayer by
1.8.8