X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Femul%2Femulkbd.cpp;h=ed5fb057b6bb7ff7a625940016f9d279fd1334c9;hb=08b11a3ad6e293343bfab98a7439a26079db5dea;hp=19c6d88033852b23df40a16449c351c254778ec4;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/emul/emulkbd.cpp b/bertos/emul/emulkbd.cpp index 19c6d880..ed5fb057 100644 --- a/bertos/emul/emulkbd.cpp +++ b/bertos/emul/emulkbd.cpp @@ -27,13 +27,12 @@ * 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 +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(item->widget()); if (key->row == active_row)