Open GoogleCodeExporter opened 9 years ago
Could not get this patch to work.
Which command should I use in POSIX? (MacOSX)
$ patch -p0 <qextserialbase-paramconversion.patch
patching file qextserialbase.cpp
Hunk #1 FAILED at 20.
Hunk #2 FAILED at 226.
2 out of 2 hunks FAILED -- saving rejects to file qextserialbase.cpp.rej
patching file qextserialbase.h
Hunk #1 FAILED at 178.
1 out of 1 hunk FAILED -- saving rejects to file qextserialbase.h.rej
$
Original comment by bengt.ni...@spray.se
on 8 Aug 2009 at 6:36
Hi Bengt,
thank you for trying. I think the problem is that I based my patch on
qextserialport-1.1 (which I forgot to mention) as available from the old SF site
which is quite dated; that was before I came across the new homepage here, and
there
isn't a more recent (stable) release available yet. I guess you tried against
the
current development version? As I don't have a Mercurial setup here on my
development
machine yet I can't even say how much 1.1 and the current trunk differ.
When I've got the time I'll install Mercurial and try to provide a patch
against the
current version. If you're still interested, you could try to apply the changes
by
hand as provided in the file attached below; it consists mainly of a stack of
new
methods appended to the cpp file and just one simple change in constructor
QextSerialBase::QextSerialBase() (removed the ifdef'ed section, replaced by a
method
call).
Martin
Original comment by Martin.G...@alpha-bit.de
on 11 Aug 2009 at 8:27
Attachments:
OK, here is the patch for the current trunk. Please note that it compiles in
Visual
Studio 2008, but I didn't test it.
Original comment by Martin.G...@alpha-bit.de
on 11 Aug 2009 at 12:49
Attachments:
I also had this problem and also started with an old sf version, mine was
1.2.2alpha.
My thought was to create a class and use QTs meta object system for all further
processing, because this provides an automated approach. I just needed to create
some static wrapper functions.
In the future values stored behind the enums can also have really usable
values. And
for now one just gets options available on the currently used platform.
I will add the sources to this file later as I'm not at work right now, sorry.
Original comment by ulrich.l...@hhi.fraunhofer.de
on 2 Sep 2009 at 9:04
The attached patch introduces a new class QextSerialPortSettings substituting
the
PortSettings struct and providing advanced features for handling meta data of
the
enums by using the QMetaObjectData system. This is achieved by making the
QextSerialPortSettings class a Q_GADGET a kind of lightweight Q_OBJECT as I
understand.
There are also implemented some convenience funtions for retrieving QMaps or
QStringLists of meta data of the enums.
The attached patch contains every changes made to all classes for using the new
QextSerialPortSettings class and its enums.
Original comment by ulrich.l...@hhi.fraunhofer.de
on 8 Sep 2009 at 1:25
Attachments:
Is there a driver who would like to comment on this?
Would this patch be better if there was an example that specifically used the
extra
functionality this conversion is desired to provide?
Original comment by bryant.m...@gmail.com
on 23 Nov 2009 at 4:54
Fixed In Version 2.0
Original comment by dbzhang...@gmail.com
on 19 Apr 2012 at 2:09
Original comment by dbzhang...@gmail.com
on 13 Dec 2012 at 6:21
Original issue reported on code.google.com by
Martin.G...@alpha-bit.de
on 3 Aug 2009 at 7:45Attachments: