TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musictoastlabel.cpp
Go to the documentation of this file.
1 #include "musictoastlabel.h"
2 #include "musicapplication.h"
3 
5  : TTKToastLabel(parent)
6 {
7 
8 }
9 
10 MusicToastLabel::MusicToastLabel(const QString &text, QWidget *parent)
11  : TTKToastLabel(text, parent)
12 {
13 
14 }
15 
16 void MusicToastLabel::popup(const QString &text)
17 {
19  label->setText(text);
20  label->popup();
21 }
void popup(QWidget *parent=nullptr)
static MusicApplication * instance()
void setText(const QString &text)
MusicToastLabel(QWidget *parent=nullptr)
static void popup(const QString &text)
The class of the toast widget.
Definition: ttktoastlabel.h:29