lwIP: remove dependency on heap module
[bertos.git] / bertos / emul / emulkbd.cpp
index 19c6d88033852b23df40a16449c351c254778ec4..ed5fb057b6bb7ff7a625940016f9d279fd1334c9 100644 (file)
  * the GNU General Public License.
  *
  * Copyright 2006 Develer S.r.l. (http://www.develer.com/)
- * Copyright 2001 Bernardo Innocenti <bernie@codewiz.org>
+ * Copyright 2001 Bernie Innocenti <bernie@codewiz.org>
  *
  * -->
  *
- * \version $Id$
  *
- * \author Bernardo Innocenti <bernie@develer.com>
+ * \author Bernie Innocenti <bernie@codewiz.org>
  *
  * \brief QT-based widget for keyboard emulation (implementation)
  */
@@ -205,8 +204,7 @@ int EmulKbd::readCols(void)
        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)