VirtualBox

Changeset 1213 in vbox


Ignore:
Timestamp:
Mar 5, 2007 1:17:16 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19140
Message:

End-line words disappearing fixed for QIRichLabel in VMSettings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/QIRichLabel.cpp

    r1017 r1213  
    293293      br = mov->framePixmap().rect();
    294294   else if (doc) {
     295      int focusIndent = hasFocus() ? 3 : 0;
    295296      int oldW = doc->width();
    296297      if ( align & WordBreak ) {
     
    298299            doc->adjustSize();
    299300         else
    300             doc->setWidth (w-hextra);
     301            doc->setWidth (w-hextra - 2*focusIndent);
    301302      }
    302303      br = QRect (0, 0, doc->widthUsed(), doc->height());
     
    562563         doc = new QSimpleRichText (filteredText, font());
    563564         /* 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);
    566567         int rh = doc->height();
    567568         int yo = 0;
     
    597598         }
    598599
    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);
    600601         if (hasFocus())
    601602            style().drawPrimitive (QStyle::PE_FocusRect, p, cr, cg,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette