VirtualBox

Changeset 4853 in vbox


Ignore:
Timestamp:
Sep 17, 2007 1:22:46 PM (17 years ago)
Author:
vboxsync
Message:

QIRichLabel fix:
different text margin in case of widget focused or not - fixed.

File:
1 edited

Legend:

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

    r4071 r4853  
    297297      br = mov->framePixmap().rect();
    298298   else if (doc) {
    299       int focusIndent = hasFocus() ? 3 : 0;
    300299      int oldW = doc->width();
    301300      if ( align & WordBreak ) {
     
    303302            doc->adjustSize();
    304303         else
    305             doc->setWidth (w-hextra - 2*focusIndent);
     304            doc->setWidth (w-hextra - 2*3);
    306305      }
    307306      br = QRect (0, 0, doc->widthUsed(), doc->height());
     
    595594         doc = new QSimpleRichText (filteredText, font());
    596595         /* focus indent */
    597          int focusIndent = hasFocus() ? 3 : 0;
    598          doc->setWidth (p, cr.width() - 2*focusIndent);
     596         doc->setWidth (p, cr.width() - 2*3);
    599597         int rh = doc->height();
    600598         int yo = 0;
     
    630628         }
    631629
    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);
    633631         if (hasFocus())
    634632            style().drawPrimitive (QStyle::PE_FocusRect, p, cr, cg,
Note: See TracChangeset for help on using the changeset viewer.

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