- QRectF r = list.at(i)->sceneBoundingRect();
- int bottom = r.bottom() - 1;
- if (bottom % 2 == 1) bottom = bottom - 1;
- int underlineHeight = r.height() / 10;
- if (underlineHeight % 2 == 1) underlineHeight = underlineHeight - 1;
- underlineHeight = qMin(underlineHeight, 10);
- underlineHeight = qMax(underlineHeight, 2);
- r.setTop(bottom - underlineHeight);
- r.setBottom(bottom);
- r.adjust(2, 0, -2, 0);
- DvdButtonUnderline *underline = new DvdButtonUnderline(r);
- m_scene->addItem(underline);
- list.at(i)->setVisible(false);
- }
+ QRectF r = list.at(i)->sceneBoundingRect();
+ int bottom = r.bottom() - 1;
+ if (bottom % 2 == 1) bottom = bottom - 1;
+ int underlineHeight = r.height() / 10;
+ if (underlineHeight % 2 == 1) underlineHeight = underlineHeight - 1;
+ underlineHeight = qMin(underlineHeight, 10);
+ underlineHeight = qMax(underlineHeight, 2);
+ r.setTop(bottom - underlineHeight);
+ r.setBottom(bottom);
+ r.adjust(2, 0, -2, 0);
+ DvdButtonUnderline *underline = new DvdButtonUnderline(r);
+ m_scene->addItem(underline);
+ list.at(i)->setVisible(false);
+ }