forked from qt-creator/qt-creator
qmlpreview: use empty messageReceived()
Default implementation already does not react on it. Change-Id: Ieaca8ab0a700b9626a705567f228bdc05172c188 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -52,14 +52,6 @@ void QmlDebugTranslationClient::changeLanguage(const QUrl &url, const QString &l
|
||||
|
||||
}
|
||||
|
||||
void QmlDebugTranslationClient::messageReceived(const QByteArray &data)
|
||||
{
|
||||
QmlDebug::QPacket packet(dataStreamVersion(), data);
|
||||
qint8 command;
|
||||
packet >> command;
|
||||
qDebug() << Q_FUNC_INFO << "invalid command" << command;
|
||||
}
|
||||
|
||||
void QmlDebugTranslationClient::stateChanged(QmlDebug::QmlDebugClient::State state)
|
||||
{
|
||||
if (state == Unavailable)
|
||||
|
@@ -37,8 +37,6 @@ public:
|
||||
explicit QmlDebugTranslationClient(QmlDebug::QmlDebugConnection *connection);
|
||||
|
||||
void changeLanguage(const QUrl &url, const QString &localeIsoCode);
|
||||
|
||||
void messageReceived(const QByteArray &message) override;
|
||||
void stateChanged(State state) override;
|
||||
|
||||
signals:
|
||||
|
Reference in New Issue
Block a user