VirtualBox

Changeset 11118 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 4, 2008 6:01:29 PM (16 years ago)
Author:
vboxsync
Message:

Fe/Qt4: Reforming Information Dialog's margins according VM details.

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxUtils.h

    r10361 r11118  
    2727#include <QMouseEvent>
    2828#include <QWidget>
     29#include <QTextEdit>
    2930
    3031/**
     
    9091};
    9192
     93/**
     94 *  QTextEdit reimplementation to feat some extended requirements.
     95 */
     96class QRichTextEdit : public QTextEdit
     97{
     98    Q_OBJECT;
     99
     100public:
     101
     102    QRichTextEdit (QWidget *aParent) : QTextEdit (aParent) {}
     103
     104    void setViewportMargins (int aLeft, int aTop, int aRight, int aBottom)
     105    {
     106        QTextEdit::setViewportMargins (aLeft, aTop, aRight, aBottom);
     107    }
     108};
     109
    92110#ifdef Q_WS_MAC
    93111# undef PAGE_SIZE
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMInformationDlg.cpp

    r10112 r11118  
    7575    mPage2->setFocusProxy (mStatisticText);
    7676
    77     /* Setup mTeSummary browser.
    78      * Contents propagation of the parent background */
     77    /* Setup browsers */
    7978    mDetailsText->viewport()->setAutoFillBackground (false);
    8079    mStatisticText->viewport()->setAutoFillBackground (false);
     80    mDetailsText->setViewportMargins (5, 5, 5, 5);
     81    mStatisticText->setViewportMargins (5, 5, 5, 5);
    8182
    8283    /* Setup handlers */
     
    386387        return;
    387388
    388     QString table = "<table border=0 cellspacing=2 cellpadding=0>%1</table>";
    389     QString hdrRow = "<tr><td align=left><img src='%1'></td><td colspan=3><b>%2</b></td></tr>";
     389    QString table = "<table border=0 cellspacing=0 cellpadding=0>%1</table>";
     390    QString hdrRow = "<tr><td width=26 align=left><img src='%1'></td><td colspan=3><b>%2</b></td></tr>";
    390391    QString bdyRow = "<tr><td></td><td><nobr>%1</nobr></td><td colspan=2><nobr>%2</nobr></td></tr>";
    391392    QString paragraph = "<tr><td colspan=4></td></tr>";
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMInformationDlg.ui

    r9257 r11118  
    6161        </property>
    6262        <item>
    63          <widget class="QTextEdit" name="mDetailsText" >
     63         <widget class="QRichTextEdit" name="mDetailsText" >
    6464          <property name="frameShape" >
    6565           <enum>QFrame::NoFrame</enum>
     
    9696        </property>
    9797        <item>
    98          <widget class="QTextEdit" name="mStatisticText" >
     98         <widget class="QRichTextEdit" name="mStatisticText" >
    9999          <property name="frameShape" >
    100100           <enum>QFrame::NoFrame</enum>
     
    128128   <header>QIDialogButtonBox.h</header>
    129129  </customwidget>
     130  <customwidget>
     131   <class>QRichTextEdit</class>
     132   <extends>QTextEdit</extends>
     133   <header>VBoxUtils.h</header>
     134  </customwidget>
    130135 </customwidgets>
    131136 <resources>
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