LibreVNA-GUI: Specify namespace for Qt::flush

This commit fixes compilation errors related to flush scoping.
This commit is contained in:
Alexander Voronov 2023-03-24 21:49:31 +03:00
parent 54de9fd6b0
commit f4b8a0b3ad
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ USBDevice::USBDevice(QString serial)
libusb_exit(m_context);
throw std::runtime_error(message.toStdString());
}
qInfo() << "USB connection established" << flush;
qInfo() << "USB connection established" << Qt::flush;
}
USBDevice::~USBDevice()

View File

@ -128,7 +128,7 @@ bool LibreVNATCPDriver::connectTo(QString serial)
connect(&dataSocket, qOverload<QAbstractSocket::SocketError>(&QTcpSocket::error), this, &LibreVNATCPDriver::ConnectionLost, Qt::QueuedConnection);
connect(&logSocket, qOverload<QAbstractSocket::SocketError>(&QTcpSocket::error), this, &LibreVNATCPDriver::ConnectionLost, Qt::QueuedConnection);
qInfo() << "TCP connection established" << flush;
qInfo() << "TCP connection established" << Qt::flush;
this->serial = serial;
connected = true;

View File

@ -211,7 +211,7 @@ bool LibreVNAUSBDriver::connectTo(QString serial)
libusb_exit(m_context);
throw std::runtime_error(message.toStdString());
}
qInfo() << "USB connection established" << flush;
qInfo() << "USB connection established" << Qt::flush;
connected = true;
m_receiveThread = new std::thread(&LibreVNAUSBDriver::USBHandleThread, this);
dataBuffer = new USBInBuffer(m_handle, EP_Data_In_Addr, 65536);