Establish proper error handling for lines() method


Because lines method always uses system call to acquire actual status
which may fail in some reasons, it may change error state of SerialPort
object. So lines should be non-const method. In case of an error and when
no any lines active it returns NoLine value.

Original patch for this change is provided by Israel Lins <israelins85@yahoo.com.br>

Change-Id: I0858200ef29ce7f67175c66898f69d1766f0f760
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
commit6e19301a87e9d0098d7e89e41d37f44ed9dad4bf
parenta5eb09c28b6115296848af929c7df571d447580b
authorSergey Belyashov <Sergey.Belyashov@gmail.com>
committerThe Qt Project <gerrit-noreply@qt-project.org>
commit timeMon, 11 Feb 2013 21:06:09 +0100