Changeset 11118 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 4, 2008 6:01:29 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxUtils.h
r10361 r11118 27 27 #include <QMouseEvent> 28 28 #include <QWidget> 29 #include <QTextEdit> 29 30 30 31 /** … … 90 91 }; 91 92 93 /** 94 * QTextEdit reimplementation to feat some extended requirements. 95 */ 96 class QRichTextEdit : public QTextEdit 97 { 98 Q_OBJECT; 99 100 public: 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 92 110 #ifdef Q_WS_MAC 93 111 # undef PAGE_SIZE -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMInformationDlg.cpp
r10112 r11118 75 75 mPage2->setFocusProxy (mStatisticText); 76 76 77 /* Setup mTeSummary browser. 78 * Contents propagation of the parent background */ 77 /* Setup browsers */ 79 78 mDetailsText->viewport()->setAutoFillBackground (false); 80 79 mStatisticText->viewport()->setAutoFillBackground (false); 80 mDetailsText->setViewportMargins (5, 5, 5, 5); 81 mStatisticText->setViewportMargins (5, 5, 5, 5); 81 82 82 83 /* Setup handlers */ … … 386 387 return; 387 388 388 QString table = "<table border=0 cellspacing= 2cellpadding=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>"; 390 391 QString bdyRow = "<tr><td></td><td><nobr>%1</nobr></td><td colspan=2><nobr>%2</nobr></td></tr>"; 391 392 QString paragraph = "<tr><td colspan=4></td></tr>"; -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMInformationDlg.ui
r9257 r11118 61 61 </property> 62 62 <item> 63 <widget class="Q TextEdit" name="mDetailsText" >63 <widget class="QRichTextEdit" name="mDetailsText" > 64 64 <property name="frameShape" > 65 65 <enum>QFrame::NoFrame</enum> … … 96 96 </property> 97 97 <item> 98 <widget class="Q TextEdit" name="mStatisticText" >98 <widget class="QRichTextEdit" name="mStatisticText" > 99 99 <property name="frameShape" > 100 100 <enum>QFrame::NoFrame</enum> … … 128 128 <header>QIDialogButtonBox.h</header> 129 129 </customwidget> 130 <customwidget> 131 <class>QRichTextEdit</class> 132 <extends>QTextEdit</extends> 133 <header>VBoxUtils.h</header> 134 </customwidget> 130 135 </customwidgets> 131 136 <resources>
Note:
See TracChangeset
for help on using the changeset viewer.