TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicwidgetrenderer.cpp
Go to the documentation of this file.
1 #include "musicwidgetrenderer.h"
4 #include "musicextractwrapper.h"
5 
7  : m_background(nullptr)
8 {
9 
10 }
11 
13 {
14  if(!m_background)
15  {
16  return;
17  }
18 
20  if(MusicExtractWrapper::outputSkin(&image, G_BACKGROUND_PTR->backgroundUrl()))
21  {
22  m_background->setPixmap(image.m_pix.scaled(size));
23  }
24  else
25  {
26  m_background->setPixmap(QPixmap(G_BACKGROUND_PTR->backgroundUrl()).scaled(size));
27  }
28 }
#define G_BACKGROUND_PTR
voidpf void uLong size
Definition: ioapi.h:136
void setBackgroundPixmap(const QSize &size)
The class of the skin backgroud image.
static bool outputSkin(MusicBackgroundImage *image, const QString &input)