forked from qt-creator/qt-creator
QmlObserver: Add 'show app on top' switch to creator + qmlobserver
This is convenient especially in the observer mode. Reviewed-by: Christiaan Janssen
This commit is contained in:
@@ -110,6 +110,10 @@ void QDeclarativeObserverService::messageReceived(const QByteArray &message)
|
||||
bool inDesignMode;
|
||||
ds >> inDesignMode;
|
||||
emit designModeBehaviorChanged(inDesignMode);
|
||||
} else if (type == "SHOW_APP_ON_TOP") {
|
||||
bool showOnTop;
|
||||
ds >> showOnTop;
|
||||
emit showAppOnTopChanged(showOnTop);
|
||||
} else if (type == "CREATE_OBJECT") {
|
||||
QString qml;
|
||||
int parentId;
|
||||
@@ -207,6 +211,16 @@ void QDeclarativeObserverService::reloaded()
|
||||
sendMessage(message);
|
||||
}
|
||||
|
||||
void QDeclarativeObserverService::setShowAppOnTop(bool showAppOnTop)
|
||||
{
|
||||
QByteArray message;
|
||||
QDataStream ds(&message, QIODevice::WriteOnly);
|
||||
|
||||
ds << QByteArray("SHOW_APP_ON_TOP") << showAppOnTop;
|
||||
|
||||
sendMessage(message);
|
||||
}
|
||||
|
||||
void QDeclarativeObserverService::selectedColorChanged(const QColor &color)
|
||||
{
|
||||
QByteArray message;
|
||||
|
||||
Reference in New Issue
Block a user