From 14b543782535e34bb28cc82c46e1e1ddda6a3898 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Thu, 16 Jan 2014 18:11:00 +0000 Subject: Fix the broken handle() documentation This is likely to be happening due to the mismatching function signature include the return type between the header and source file. Two things are being fixed: 1) Dropped scope for the Handle just like with the winId case in QWidget. 2) "const" qualifier is now added for the method. Here you can see the documentation that it is empty: http://qt-project.org/doc/qt-5/qserialport.html#handle Change-Id: I5e9e0732cfd746a863de523fe90e58eafa42c081 Reviewed-by: Alex Henrie Reviewed-by: Sergey Belyashov Reviewed-by: Martin Smith --- src/serialport/qserialport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serialport/qserialport.cpp b/src/serialport/qserialport.cpp index 5d9442e3..1fca4250 100644 --- a/src/serialport/qserialport.cpp +++ b/src/serialport/qserialport.cpp @@ -1279,7 +1279,7 @@ bool QSerialPort::waitForReadyRead(int msecs) } /*! - \fn QSerialPort::Handle QSerialPort::handle() + \fn Handle QSerialPort::handle() const \since 5.2 Returns the native serial port descriptor of the object. If the serial port -- cgit v1.2.3