TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the kugou window widget. More...
#include <qkugouwindow.h>
Public Types | |
enum | Module { None, Song, Radio, Movie, Single } |
Public Slots | |
void | refresh () |
Signals | |
void | buttonClicked (int index) |
Public Member Functions | |
QKugouWindow (Module type, QWidget *parent=nullptr) | |
void | setUrl (const QString &url) |
Private Slots | |
void | kugouSongIndexChanged (int index) |
Private Member Functions | |
void | createWebViewer () |
void | createWebViewer (Module type) |
void | createKugouSongWidget (bool power) |
The class of the kugou window widget.
Definition at line 30 of file qkugouwindow.h.
enum QKugouWindow::Module |
Enumerator | |
---|---|
None |
KuGou None |
Song |
KuGou Song |
Radio |
KuGou Radio |
Movie |
Kugou Movie |
Single |
KuGou Single |
Definition at line 34 of file qkugouwindow.h.
|
explicit |
Object constructor.
Definition at line 55 of file qkugouwindow.cpp.
References createKugouSongWidget(), createWebViewer(), TTK_INIT_PRIVATE, and TTK::UI::WidgetStyle01.
|
signal |
Switch to selected item style.
Referenced by kugouSongIndexChanged().
|
private |
Create kugou song widget.
Definition at line 213 of file qkugouwindow.cpp.
References createWebViewer(), kugouSongIndexChanged(), TTK::UI::PushButtonStyle01, QtButtonGroupConnect, TTK_D, TTK_SLOT, and TTK::UI::WidgetStyle01.
Referenced by QKugouWindow().
|
private |
Create web view widget.
Definition at line 154 of file qkugouwindow.cpp.
References Miniblink::initialize(), and TTK_D.
Referenced by createKugouSongWidget(), createWebViewer(), and QKugouWindow().
|
private |
Create web view widget.
Definition at line 176 of file qkugouwindow.cpp.
References createWebViewer(), QKugouUrl::makeKuiSheUrl(), QKugouUrl::makeMovieRecommendUrl(), QKugouUrl::makeRadioPublicUrl(), setUrl(), and TTK_D.
|
privateslot |
Kugou song index changed.
Definition at line 139 of file qkugouwindow.cpp.
References buttonClicked(), QKugouUrl::makeSongRecommendUrl(), TTK::UI::PushButtonStyle02, setUrl(), and TTK_D.
Referenced by createKugouSongWidget().
|
slot |
Set web index refresh.
Definition at line 113 of file qkugouwindow.cpp.
References Miniblink::m_webView, Miniblink::reload(), TTK_D, and TTKObjectCast.
void QKugouWindow::setUrl | ( | const QString & | url | ) |
Set current web viewer url to show.
Definition at line 86 of file qkugouwindow.cpp.
References Miniblink::m_webView, Miniblink::setUrl(), TTK_D, and TTKObjectCast.
Referenced by createWebViewer(), and kugouSongIndexChanged().