Changeset 4853 in vbox
- Timestamp:
- Sep 17, 2007 1:22:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/QIRichLabel.cpp
r4071 r4853 297 297 br = mov->framePixmap().rect(); 298 298 else if (doc) { 299 int focusIndent = hasFocus() ? 3 : 0;300 299 int oldW = doc->width(); 301 300 if ( align & WordBreak ) { … … 303 302 doc->adjustSize(); 304 303 else 305 doc->setWidth (w-hextra - 2* focusIndent);304 doc->setWidth (w-hextra - 2*3); 306 305 } 307 306 br = QRect (0, 0, doc->widthUsed(), doc->height()); … … 595 594 doc = new QSimpleRichText (filteredText, font()); 596 595 /* focus indent */ 597 int focusIndent = hasFocus() ? 3 : 0; 598 doc->setWidth (p, cr.width() - 2*focusIndent); 596 doc->setWidth (p, cr.width() - 2*3); 599 597 int rh = doc->height(); 600 598 int yo = 0; … … 630 628 } 631 629 632 doc->draw (p, cr.x()+ focusIndent, cr.y()+yo, cr, cg, &paper);630 doc->draw (p, cr.x()+3, cr.y()+yo, cr, cg, &paper); 633 631 if (hasFocus()) 634 632 style().drawPrimitive (QStyle::PE_FocusRect, p, cr, cg,
Note:
See TracChangeset
for help on using the changeset viewer.