TTKMusicPlayer
4.2.0.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
TTKCommon
TTKLibrary
ttkeventloop.cpp
Go to the documentation of this file.
1
#include "
ttkeventloop.h
"
2
3
TTKEventLoop::TTKEventLoop
(QObject *parent)
4
: QEventLoop(parent)
5
{
6
m_timer
.setInterval(10 *
TTK_DN_S2MS
);
7
connect(&
m_timer
, SIGNAL(timeout()), SLOT(
quit
()));
8
}
9
10
TTKEventLoop::~TTKEventLoop
()
11
{
12
quit
();
13
}
14
15
void
TTKEventLoop::setTimeout
(
int
msec)
16
{
17
m_timer
.setInterval(msec);
18
}
19
20
int
TTKEventLoop::exec
(ProcessEventsFlags
flags
)
21
{
22
m_timer
.start();
23
return
QEventLoop::exec(flags);
24
}
25
26
void
TTKEventLoop::quit
()
27
{
28
m_timer
.stop();
29
return
QEventLoop::quit();
30
}
31
32
void
TTKEventLoop::exit
()
33
{
34
m_timer
.stop();
35
return
QEventLoop::exit();
36
}
TTKEventLoop::m_timer
QTimer m_timer
Definition:
ttkeventloop.h:63
flags
flags
Definition:
http_parser.h:135
TTKEventLoop::~TTKEventLoop
~TTKEventLoop()
Definition:
ttkeventloop.cpp:10
TTKEventLoop::exec
int exec(ProcessEventsFlags flags=AllEvents)
Definition:
ttkeventloop.cpp:20
TTKEventLoop::quit
void quit()
Definition:
ttkeventloop.cpp:26
TTKEventLoop::TTKEventLoop
TTKEventLoop(QObject *parent=nullptr)
Definition:
ttkeventloop.cpp:3
TTKEventLoop::setTimeout
void setTimeout(int msec)
Definition:
ttkeventloop.cpp:15
TTK_DN_S2MS
#define TTK_DN_S2MS
Definition:
ttkglobal.h:355
ttkeventloop.h
TTKEventLoop::exit
void exit()
Definition:
ttkeventloop.cpp:32
Generated on Sat Jul 19 2025 16:52:59 for TTKMusicPlayer by
1.8.8