TTKMusicPlayer
4.1.3.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, KuGouSong, KuGouRadio, KugouMovie, KuGouSingle } |
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 |
KuGouSong |
KuGou Song |
KuGouRadio |
KuGou Radio |
KugouMovie |
Kugou Movie |
KuGouSingle |
KuGou Single |
Definition at line 34 of file qkugouwindow.h.
|
explicit |
Object constructor.
Definition at line 55 of file qkugouwindow.cpp.
References createKugouSongWidget(), createWebViewer(), KuGouSong, None, and TTK_INIT_PRIVATE.
|
signal |
Switch to selected item style.
Referenced by kugouSongIndexChanged().
|
private |
Create kugou song widget.
Definition at line 212 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 151 of file qkugouwindow.cpp.
References Miniblink::initialize(), and TTK_D.
Referenced by createKugouSongWidget(), createWebViewer(), and QKugouWindow().
|
private |
Create web view widget.
Definition at line 173 of file qkugouwindow.cpp.
References createWebViewer(), KugouMovie, KuGouRadio, KuGouSingle, QKugouUrl::makeKuiSheUrl(), QKugouUrl::makeMovieRecommendUrl(), QKugouUrl::makeRadioPublicUrl(), setUrl(), TTK_D, and TTK::UI::WidgetStyle01.
|
privateslot |
Kugou song index changed.
Definition at line 136 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 110 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 83 of file qkugouwindow.cpp.
References Miniblink::m_webView, Miniblink::setUrl(), TTK_D, and TTKObjectCast.
Referenced by createWebViewer(), and kugouSongIndexChanged().