Changeset 30878 in vbox
- Timestamp:
- Jul 16, 2010 12:44:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMPreviewWindow.cpp
r30868 r30878 159 159 * our rectangle. Decrease the font pixel size as long as it 160 160 * doesn't fit. */ 161 int cMax = 30; 161 162 do 162 163 { … … 165 166 painter.setFont(font); 166 167 r = painter.boundingRect(m_vRect, fFlags, strName); 167 }while ( r.height() > m_vRect.height() 168 || r.width() > m_vRect.width()); 168 }while (( r.height() > m_vRect.height() 169 || r.width() > m_vRect.width()) 170 && cMax-- != 0); 169 171 painter.setPen(Qt::white); 170 172 painter.drawText(m_vRect, fFlags, strName);
Note:
See TracChangeset
for help on using the changeset viewer.