Changeset 1213 in vbox
- Timestamp:
- Mar 5, 2007 1:17:16 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19140
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/QIRichLabel.cpp
r1017 r1213 293 293 br = mov->framePixmap().rect(); 294 294 else if (doc) { 295 int focusIndent = hasFocus() ? 3 : 0; 295 296 int oldW = doc->width(); 296 297 if ( align & WordBreak ) { … … 298 299 doc->adjustSize(); 299 300 else 300 doc->setWidth (w-hextra );301 doc->setWidth (w-hextra - 2*focusIndent); 301 302 } 302 303 br = QRect (0, 0, doc->widthUsed(), doc->height()); … … 562 563 doc = new QSimpleRichText (filteredText, font()); 563 564 /* focus indent */ 564 int xo = 3;565 doc->setWidth (p, cr.width() - 2* xo);565 int focusIndent = hasFocus() ? 3 : 0; 566 doc->setWidth (p, cr.width() - 2*focusIndent); 566 567 int rh = doc->height(); 567 568 int yo = 0; … … 597 598 } 598 599 599 doc->draw (p, cr.x()+ xo, cr.y()+yo, cr, cg, &paper);600 doc->draw (p, cr.x()+focusIndent, cr.y()+yo, cr, cg, &paper); 600 601 if (hasFocus()) 601 602 style().drawPrimitive (QStyle::PE_FocusRect, p, cr, cg,
Note:
See TracChangeset
for help on using the changeset viewer.