Removed unused debug, and set the correct data on the delegates.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-05-22 14:25:37 -03:00
parent f73660cc09
commit 3e51476d87
2 changed files with 2 additions and 3 deletions

View file

@ -54,7 +54,6 @@ QWidget* TankInfoDelegate::createEditor(QWidget* parent, const QStyleOptionViewI
QComboBox *comboDelegate = new QComboBox(parent);
TankInfoModel *model = new TankInfoModel;
QString data = index.model()->data(index, Qt::DisplayRole).toString();
qDebug() << "Tentando pegar " << data;
comboDelegate->setModel(model);
int i;
for(i = 0; i < model->rowCount(); i++){