forked from qt-creator/qt-creator
QmlDebug: Avoid hiding of virtual functions
Change-Id: I1722f5298693b6ed9700dcd65d5e2210500a6206 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
1eaadfa7d7
commit
8584730963
@@ -63,7 +63,7 @@ void QmlEngineControlClient::releaseEngine(int engineId)
|
||||
EngineState &state = m_blockedEngines[engineId];
|
||||
if (--state.blockers == 0) {
|
||||
QTC_ASSERT(state.releaseCommand != InvalidCommand, return);
|
||||
sendMessage(state.releaseCommand, engineId);
|
||||
sendCommand(state.releaseCommand, engineId);
|
||||
m_blockedEngines.remove(engineId);
|
||||
}
|
||||
}
|
||||
@@ -101,12 +101,12 @@ void QmlEngineControlClient::messageReceived(const QByteArray &data)
|
||||
}
|
||||
|
||||
if (state.blockers == 0 && state.releaseCommand != InvalidCommand) {
|
||||
sendMessage(state.releaseCommand, id);
|
||||
sendCommand(state.releaseCommand, id);
|
||||
m_blockedEngines.remove(id);
|
||||
}
|
||||
}
|
||||
|
||||
void QmlEngineControlClient::sendMessage(QmlEngineControlClient::CommandType command, int engineId)
|
||||
void QmlEngineControlClient::sendCommand(QmlEngineControlClient::CommandType command, int engineId)
|
||||
{
|
||||
QByteArray data;
|
||||
QDataStream stream(&data, QIODevice::WriteOnly);
|
||||
|
||||
@@ -65,7 +65,7 @@ signals:
|
||||
|
||||
protected:
|
||||
void messageReceived(const QByteArray &);
|
||||
void sendMessage(CommandType command, int engineId);
|
||||
void sendCommand(CommandType command, int engineId);
|
||||
|
||||
struct EngineState {
|
||||
EngineState(CommandType command = InvalidCommand) : releaseCommand(command), blockers(0) {}
|
||||
|
||||
Reference in New Issue
Block a user