TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicmobiledeviceswidget.cpp
Go to the documentation of this file.
3 #include "musicsettingmanager.h"
4 #include "musicapplication.h"
5 
7  : TTKClickedLabel(parent)
8 {
9  setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::Tool);
10  setAttribute(Qt::WA_TranslucentBackground);
11 
12  const QSize &windowSize = G_SETTING_PTR->value(MusicSettingManager::ScreenSize).toSize();
13  setGeometry(windowSize.width() - 266 - 15, windowSize.height() - 85 - 55, 266, 85);
14  setPixmap(QPixmap(":/toolSets/lb_mobile_devices"));
15 
16  m_closeButton = new QToolButton(this);
17  m_closeButton->setIcon(QIcon(":/functions/btn_close_hover"));
19  m_closeButton->setCursor(QCursor(Qt::PointingHandCursor));
20  m_closeButton->setToolTip(tr("Close"));
21  m_closeButton->setGeometry(235, 2, 28, 22);
22 
23  connect(m_closeButton, SIGNAL(clicked()), SLOT(close()));
24  connect(this, SIGNAL(clicked()), SLOT(showMobileManager()));
25 }
26 
28 {
29  delete m_closeButton;
30 }
31 
33 {
34  hide();
35  //
38 }
MusicMobileDevicesWidget(QWidget *parent=nullptr)
#define TTKGenerateSingleWidget(...)
The class of the label widget that can click.
static const QString ToolButtonStyle04
The class of the mobile songs manager widget.
#define G_SETTING_PTR