X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Femul%2Femulkbd.cpp;h=7afc1f2aab2c1ff4ee47276ee5290ed5e257451e;hb=87bbb18b93461ad7889de3a1e918e930ddf9cc7f;hp=19c6d88033852b23df40a16449c351c254778ec4;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/emul/emulkbd.cpp b/bertos/emul/emulkbd.cpp index 19c6d880..7afc1f2a 100644 --- 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/) - * Copyright 2001 Bernardo Innocenti + * Copyright 2001 Bernie Innocenti * * --> * * \version $Id$ * - * \author Bernardo Innocenti + * \author Bernie Innocenti * * \brief QT-based widget for keyboard emulation (implementation) */ @@ -205,8 +205,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(item->widget()); if (key->row == active_row)