projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the bug related to the empty version list
[bertos.git]
/
bertos
/
emul
/
emulkbd.cpp
diff --git
a/bertos/emul/emulkbd.cpp
b/bertos/emul/emulkbd.cpp
index 19c6d88033852b23df40a16449c351c254778ec4..7afc1f2aab2c1ff4ee47276ee5290ed5e257451e 100644
(file)
--- a/
bertos/emul/emulkbd.cpp
+++ b/
bertos/emul/emulkbd.cpp
@@
-27,13
+27,13
@@
* the GNU General Public License.
*
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
* the GNU General Public License.
*
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
- * Copyright 2001 Bern
ardo
Innocenti <bernie@codewiz.org>
+ * Copyright 2001 Bern
ie
Innocenti <bernie@codewiz.org>
*
* -->
*
* \version $Id$
*
*
* -->
*
* \version $Id$
*
- * \author Bern
ardo Innocenti <bernie@develer.com
>
+ * \author Bern
ie Innocenti <bernie@codewiz.org
>
*
* \brief QT-based widget for keyboard emulation (implementation)
*/
*
* \brief QT-based widget for keyboard emulation (implementation)
*/
@@
-205,8
+205,7
@@
int EmulKbd::readCols(void)
EmulKey *key;
int cols = 0;
EmulKey *key;
int cols = 0;
- // FIXME: QLayoutIterator is obsolete in Qt4
- for(QLayoutIterator it(layout->iterator()); (item = it.current()); ++it)
+ for (int i = 0; (item = layout->itemAt(i)); ++i)
{
key = static_cast<EmulKey *>(item->widget());
if (key->row == active_row)
{
key = static_cast<EmulKey *>(item->widget());
if (key->row == active_row)