QmlJS Live Preview: Added color box to toolbar

This commit is contained in:
Lasse Holmstedt
2010-07-26 12:47:55 +02:00
parent c7a8d93765
commit fb681918c6
15 changed files with 208 additions and 0 deletions

View File

@@ -43,6 +43,8 @@
#include "qmljsclientproxy.h"
#include "qmljsinspectorconstants.h"
#include <QColor>
namespace QmlJSInspector {
namespace Internal {
@@ -98,6 +100,10 @@ void QmlJSDesignDebugClient::messageReceived(const QByteArray &message)
emit designModeBehaviorChanged(inDesignMode);
} else if (type == "RELOADED") {
emit reloaded();
} else if (type == "COLOR_CHANGED") {
QColor col;
ds >> col;
emit selectedColorChanged(col);
}
}