implement equalizer widget. access to legacy equalizer is now possible

This commit is contained in:
Thomas Frauendorfer 2008-02-04 18:26:36 +01:00
parent 47d8e323ab
commit ac44b4efc6
6 changed files with 168 additions and 21 deletions

View file

@ -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;

View file

@ -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 *);