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

@@ -1,5 +1,7 @@
#include "qdeclarativedesigndebugserver.h"
#include <QStringList>
#include <QColor>
#include <QDebug>
@@ -128,3 +130,13 @@ void QDeclarativeDesignDebugServer::reloaded()
sendMessage(message);
}
void QDeclarativeDesignDebugServer::selectedColorChanged(const QColor &color)
{
QByteArray message;
QDataStream ds(&message, QIODevice::WriteOnly);
ds << QByteArray("COLOR_CHANGED")
<< color;
sendMessage(message);
}