forked from qt-creator/qt-creator
QmlJS Live Preview: Added color box to toolbar
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user