|
a/GUI/mainw/trayicon.cpp |
|
b/GUI/mainw/trayicon.cpp |
|
... |
|
... |
101 |
connect(_timer, SIGNAL(timeout()), this, SLOT(timer_timed_out()));
|
101 |
connect(_timer, SIGNAL(timeout()), this, SLOT(timer_timed_out()));
|
102 |
}
|
102 |
}
|
103 |
|
103 |
|
104 |
GUI_TrayIcon::~GUI_TrayIcon()
|
104 |
GUI_TrayIcon::~GUI_TrayIcon()
|
105 |
{
|
105 |
{
|
106 |
delete m_playAction;
|
|
|
107 |
delete m_stopAction;
|
|
|
108 |
delete m_bwdAction;
|
|
|
109 |
delete m_fwdAction;
|
|
|
110 |
delete m_muteAction;
|
|
|
111 |
delete m_closeAction;
|
|
|
112 |
}
|
106 |
}
|
113 |
|
107 |
|
114 |
void GUI_TrayIcon::change_skin(QString stylesheet)
|
108 |
void GUI_TrayIcon::change_skin(QString stylesheet)
|
115 |
{
|
109 |
{
|
116 |
this->m_trayContextMenu->setStyleSheet(stylesheet);
|
110 |
this->m_trayContextMenu->setStyleSheet(stylesheet);
|
|
... |
|
... |
183 |
m_stopAction->setEnabled(b);
|
177 |
m_stopAction->setEnabled(b);
|
184 |
}
|
178 |
}
|
185 |
|
179 |
|
186 |
void GUI_TrayIcon::set_enable_mute(bool)
|
180 |
void GUI_TrayIcon::set_enable_mute(bool)
|
187 |
{
|
181 |
{
|
188 |
|
|
|
189 |
}
|
182 |
}
|
190 |
|
183 |
|
191 |
void GUI_TrayIcon::set_enable_fwd(bool b)
|
184 |
void GUI_TrayIcon::set_enable_fwd(bool b)
|
192 |
{
|
185 |
{
|
193 |
m_fwdAction->setEnabled(b);
|
186 |
m_fwdAction->setEnabled(b);
|
|
... |
|
... |
200 |
|
193 |
|
201 |
void GUI_TrayIcon::set_enable_show(bool b)
|
194 |
void GUI_TrayIcon::set_enable_show(bool b)
|
202 |
{
|
195 |
{
|
203 |
m_showAction->setEnabled(b);
|
196 |
m_showAction->setEnabled(b);
|
204 |
}
|
197 |
}
|
205 |
|
|
|
206 |
|
198 |
|
207 |
void GUI_TrayIcon::play_clicked()
|
199 |
void GUI_TrayIcon::play_clicked()
|
208 |
{
|
200 |
{
|
209 |
qDebug() << "tray: play clicked";
|
201 |
qDebug() << "tray: play clicked";
|
210 |
if (!m_playing) {
|
202 |
if (!m_playing) {
|
|
... |
|
... |
275 |
{
|
267 |
{
|
276 |
//qDebug() << "GUI_TrayIcon::setPlaying: " << playing;
|
268 |
//qDebug() << "GUI_TrayIcon::setPlaying: " << playing;
|
277 |
m_playing = playing;
|
269 |
m_playing = playing;
|
278 |
|
270 |
|
279 |
if (playing) {
|
271 |
if (playing) {
|
280 |
//setIcon(m_pauseIcon);
|
|
|
281 |
m_playAction->setIcon(m_pauseIcon);
|
272 |
m_playAction->setIcon(m_pauseIcon);
|
282 |
m_playAction->setText(tr("Pause"));
|
273 |
m_playAction->setText(tr("Pause"));
|
283 |
} else {
|
274 |
} else {
|
284 |
//setIcon(m_playIcon);
|
|
|
285 |
m_playAction->setIcon(m_playIcon);
|
275 |
m_playAction->setIcon(m_playIcon);
|
286 |
m_playAction->setText(tr("Play"));
|
276 |
m_playAction->setText(tr("Play"));
|
287 |
}
|
277 |
}
|
288 |
}
|
278 |
}
|
289 |
|
279 |
|