implement equalizer widget. access to legacy equalizer is now possible
This commit is contained in:
parent
47d8e323ab
commit
ac44b4efc6
6 changed files with 168 additions and 21 deletions
|
@ -22,6 +22,8 @@
|
|||
|
||||
XSettings::XSettings (QObject *parent, XClient *client) : QObject (parent)
|
||||
{
|
||||
m_ready = false;
|
||||
|
||||
connect (client, SIGNAL (gotConnection (XClient *)),
|
||||
this, SLOT (on_connect (XClient *)));
|
||||
|
||||
|
@ -53,6 +55,10 @@ XSettings::value_set (QString key, QString val)
|
|||
if (!m_client->isConnected ()) {
|
||||
return false;
|
||||
}
|
||||
// Only send change, if the value really changed;
|
||||
if (val == value_get (key))
|
||||
return true;
|
||||
|
||||
m_client->config ()->valueSet (key.toStdString (), val.toStdString ());
|
||||
|
||||
return true;
|
||||
|
|
|
@ -38,7 +38,7 @@ class XSettings : public QObject
|
|||
bool isReady (void) {return m_ready;}
|
||||
|
||||
signals:
|
||||
void configChanged(QString key, QString value);
|
||||
void configChanged (QString key, QString value);
|
||||
|
||||
public slots:
|
||||
void on_connect (XClient *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue