Commit 8415f3a6 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

try to provide the "raise the player" feature through mpris2

parent ad4ab942
......@@ -85,6 +85,12 @@ ApplicationWindow {
playerName: 'elisa'
playListModel: playListModelItem
playListControler: playListControlerItem
onRaisePlayer:
{
mainWindow.raise()
mainWindow.requestActivate()
}
}
DatabaseInterface {
......
......@@ -53,7 +53,7 @@ void MediaPlayer2::Quit() const
void MediaPlayer2::Raise() const
{
emit raisePMC();
emit raisePlayer();
}
QString MediaPlayer2::Identity() const
......
......@@ -60,7 +60,7 @@ public Q_SLOTS:
void Raise() const;
Q_SIGNALS:
void raisePMC() const;
void raisePlayer() const;
};
......
......@@ -61,7 +61,7 @@ void Mpris2::initDBusService()
QDBusConnection::sessionBus().registerObject(QStringLiteral("/org/mpris/MediaPlayer2"), this, QDBusConnection::ExportAdaptors);
connect(m_mp2, SIGNAL(raisePMC()), this, SIGNAL(raisePMC()));
connect(m_mp2, SIGNAL(raisePlayer()), this, SIGNAL(raisePlayer()));
}
}
......
......@@ -70,7 +70,7 @@ public Q_SLOTS:
void setPlayListControler(PlayListControler* playListControler);
Q_SIGNALS:
void raisePMC() const;
void raisePlayer() const;
void playerNameChanged();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment