forked from qt-creator/qt-creator
Use Utils::Port where possible
This solves the ambiguity between 0 and -1 being the "invalid" port. Change-Id: I3bac11dd4117bb1820fbd58186699925b73df1c5 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "qmlprofilerstatemanager.h"
|
||||
#include <qmldebug/qmlprofilereventlocation.h>
|
||||
#include <utils/port.h>
|
||||
|
||||
#include <QObject>
|
||||
#include <QStringList>
|
||||
@@ -45,7 +46,7 @@ public:
|
||||
~QmlProfilerClientManager();
|
||||
|
||||
void registerProfilerStateManager(QmlProfilerStateManager *profilerState);
|
||||
void setTcpConnection(QString host, quint64 port);
|
||||
void setTcpConnection(QString host, Utils::Port port);
|
||||
void setLocalSocket(QString file);
|
||||
|
||||
void clearBufferedData();
|
||||
@@ -63,7 +64,7 @@ signals:
|
||||
void connectionClosed();
|
||||
|
||||
public slots:
|
||||
void connectTcpClient(quint16 port);
|
||||
void connectTcpClient(Utils::Port port);
|
||||
void connectLocalClient(const QString &file);
|
||||
void disconnectClient();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user