Hi! I have just realized that storing a value from the enum StopBitsType using
QSettings could be a little confusing.
It is curently defined as:
enum StopBitsType
{
STOP_1,
#if defined(Q_OS_WIN) || defined(qdoc)
STOP_1_5, //WINDOWS ONLY
#endif
STOP_2
};
What I propose is:
enum StopBitsType
{
STOP_1 = 1,
#if defined(Q_OS_WIN) || defined(qdoc)
STOP_1_5 = 3, //WINDOWS ONLY
#endif
STOP_2 = 2
};
In this way the value will have more sense if stored in using QSettings.
Also, as 1.5 can't be represented in Windows, I decided to use 3, is it at
least 1.5*2 ;)
What do you think?
Kind regards, Lisandro.
--
Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/